diff options
author | Florian Apolloner <florian@apolloner.eu> | 2022-12-12 08:25:05 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-12-12 08:36:17 +0100 |
commit | 2ebfbd894e21e1656c1e1f32d98b8df7a32d3649 (patch) | |
tree | d74840ed5991c06abd3b09067d683fdc2282d7c6 /tests/postgres_tests/test_array.py | |
parent | c5ed884eabf3b2b67581c55bf6c87e721f69157f (diff) | |
download | django-2ebfbd894e21e1656c1e1f32d98b8df7a32d3649.tar.gz |
Refs #33308 -- Moved psycopg2 imports to the psycopg_any module.
Diffstat (limited to 'tests/postgres_tests/test_array.py')
-rw-r--r-- | tests/postgres_tests/test_array.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/postgres_tests/test_array.py b/tests/postgres_tests/test_array.py index e1d9be6c02..a3c26fddae 100644 --- a/tests/postgres_tests/test_array.py +++ b/tests/postgres_tests/test_array.py @@ -31,8 +31,6 @@ from .models import ( ) try: - from psycopg2.extras import NumericRange - from django.contrib.postgres.aggregates import ArrayAgg from django.contrib.postgres.expressions import ArraySubquery from django.contrib.postgres.fields import ArrayField @@ -42,6 +40,7 @@ try: SplitArrayField, SplitArrayWidget, ) + from django.db.backends.postgresql.psycopg_any import NumericRange except ImportError: pass |