diff options
| author | Simon Charette <charette.s@gmail.com> | 2017-05-03 01:25:30 -0400 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2017-05-04 00:23:49 -0400 |
| commit | 246166cfe4d5d054fcef452c5af2d0b0e5f37151 (patch) | |
| tree | d69f5e20e3191fbb881363051e68aa8830093ee6 /tests/postgres_tests/__init__.py | |
| parent | f3217ab59696ea095a42c7fb4d98f21bb000ca8e (diff) | |
[1.11.x] Fixed #28161 -- Fixed return type of ArrayField(CITextField()).
Thanks Tim for the review.
Backport of b91868507af08234a30e9a8e7c90b37c561ba315 from master.
Diffstat (limited to 'tests/postgres_tests/__init__.py')
| -rw-r--r-- | tests/postgres_tests/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/postgres_tests/__init__.py b/tests/postgres_tests/__init__.py index 75286781dd..932057532c 100644 --- a/tests/postgres_tests/__init__.py +++ b/tests/postgres_tests/__init__.py @@ -12,14 +12,14 @@ class PostgreSQLTestCase(TestCase): @classmethod def tearDownClass(cls): # No need to keep that signal overhead for non PostgreSQL-related tests. - from django.contrib.postgres.signals import register_hstore_handler + from django.contrib.postgres.signals import register_type_handlers - connection_created.disconnect(register_hstore_handler) + connection_created.disconnect(register_type_handlers) super(PostgreSQLTestCase, cls).tearDownClass() @unittest.skipUnless(connection.vendor == 'postgresql', "PostgreSQL specific tests") # To locate the widget's template. @modify_settings(INSTALLED_APPS={'append': 'django.contrib.postgres'}) -class PostgreSQLWidgetTestCase(WidgetTest): +class PostgreSQLWidgetTestCase(WidgetTest, PostgreSQLTestCase): pass |
