mirror of
https://github.com/django/django.git
synced 2025-12-04 00:55:36 +00:00
Fixed #28161 -- Fixed return type of ArrayField(CITextField()).
Thanks Tim for the review.
This commit is contained in:
parent
f37467ec7a
commit
b91868507a
8 changed files with 40 additions and 15 deletions
|
|
@ -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().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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue