summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_array.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/postgres_tests/test_array.py')
-rw-r--r--tests/postgres_tests/test_array.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/postgres_tests/test_array.py b/tests/postgres_tests/test_array.py
index df95e251ec..822e61f4e4 100644
--- a/tests/postgres_tests/test_array.py
+++ b/tests/postgres_tests/test_array.py
@@ -25,14 +25,17 @@ from .models import (
)
try:
+ from psycopg2.extras import NumericRange
+
from django.contrib.postgres.aggregates import ArrayAgg
from django.contrib.postgres.fields import ArrayField
- from django.contrib.postgres.fields.array import IndexTransform, SliceTransform
+ from django.contrib.postgres.fields.array import (
+ IndexTransform, SliceTransform,
+ )
from django.contrib.postgres.forms import (
SimpleArrayField, SplitArrayField, SplitArrayWidget,
)
from django.db.backends.postgresql.base import PSYCOPG2_VERSION
- from psycopg2.extras import NumericRange
except ImportError:
pass