summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/test_array.py
diff options
context:
space:
mode:
authorDavid Smith <smithdc@gmail.com>2020-07-24 07:25:47 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-09-30 09:51:31 +0200
commit12ba61ed1755ba4a67202e95f78403240efa931b (patch)
tree567894596142ab617a0630ea6f061a4580b72f03 /tests/postgres_tests/test_array.py
parent356efa90b5984eee25359959a20f672273199720 (diff)
[3.1.x] Bumped minimum isort version to 5.1.0.
Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable. Backport of e74b3d724e5ddfef96d1d66bd1c58e7aae26fc85 from master
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 ee66fbcd60..a3095ae9ff 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