summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/__init__.py
diff options
context:
space:
mode:
authorSimon Charette <charettes@users.noreply.github.com>2018-11-12 11:15:48 -0500
committerTim Graham <timograham@gmail.com>2018-11-12 11:15:48 -0500
commit2f120ac51722a257219a7577759702605cefddf4 (patch)
tree05b9c93c70fcbe9b795af67ca59e2dac44ce4626 /tests/postgres_tests/__init__.py
parentb1243a55a5916ed08a726b011bc05d40f717ef40 (diff)
Fixed #29945 -- Moved contrib.postgres uninstallation logic to the app config.
Diffstat (limited to 'tests/postgres_tests/__init__.py')
-rw-r--r--tests/postgres_tests/__init__.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/postgres_tests/__init__.py b/tests/postgres_tests/__init__.py
index 24d78c9bfe..d2e5d3bea4 100644
--- a/tests/postgres_tests/__init__.py
+++ b/tests/postgres_tests/__init__.py
@@ -3,19 +3,12 @@ import unittest
from forms_tests.widget_tests.base import WidgetTest
from django.db import connection
-from django.db.backends.signals import connection_created
from django.test import TestCase, modify_settings
@unittest.skipUnless(connection.vendor == 'postgresql', "PostgreSQL specific tests")
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_type_handlers
-
- connection_created.disconnect(register_type_handlers)
- super().tearDownClass()
+ pass
@unittest.skipUnless(connection.vendor == 'postgresql', "PostgreSQL specific tests")