diff options
Diffstat (limited to 'tests/postgres_tests/test_apps.py')
| -rw-r--r-- | tests/postgres_tests/test_apps.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/postgres_tests/test_apps.py b/tests/postgres_tests/test_apps.py index 340e555609..678e5a9374 100644 --- a/tests/postgres_tests/test_apps.py +++ b/tests/postgres_tests/test_apps.py @@ -1,11 +1,12 @@ +import unittest from decimal import Decimal +from django.db import connection from django.db.backends.signals import connection_created from django.db.migrations.writer import MigrationWriter +from django.test import TestCase from django.test.utils import modify_settings -from . import PostgreSQLTestCase - try: from psycopg2.extras import DateRange, DateTimeRange, DateTimeTZRange, NumericRange @@ -19,7 +20,8 @@ except ImportError: pass -class PostgresConfigTests(PostgreSQLTestCase): +@unittest.skipUnless(connection.vendor == "postgresql", "PostgreSQL specific tests") +class PostgresConfigTests(TestCase): def test_register_type_handlers_connection(self): from django.contrib.postgres.signals import register_type_handlers |
