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_constraints.py | |
| parent | c5ed884eabf3b2b67581c55bf6c87e721f69157f (diff) | |
Refs #33308 -- Moved psycopg2 imports to the psycopg_any module.
Diffstat (limited to 'tests/postgres_tests/test_constraints.py')
| -rw-r--r-- | tests/postgres_tests/test_constraints.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/postgres_tests/test_constraints.py b/tests/postgres_tests/test_constraints.py index 9aa5bfdbb8..ad21ffa2b5 100644 --- a/tests/postgres_tests/test_constraints.py +++ b/tests/postgres_tests/test_constraints.py @@ -25,14 +25,13 @@ from . import PostgreSQLTestCase from .models import HotelReservation, IntegerArrayModel, RangesModel, Room, Scene try: - from psycopg2.extras import DateRange, NumericRange - from django.contrib.postgres.constraints import ExclusionConstraint from django.contrib.postgres.fields import ( DateTimeRangeField, RangeBoundary, RangeOperators, ) + from django.db.backends.postgresql.psycopg_any import DateRange, NumericRange except ImportError: pass |
