diff options
| author | Simon Charette <charette.s@gmail.com> | 2019-01-12 16:14:54 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-01-14 16:16:30 -0500 |
| commit | b181aba7dd24c73ec9923c39e35393b0487a5f47 (patch) | |
| tree | e5d82ea665a4b6eace3e07fb53d78808b936c624 /tests/invalid_models_tests/test_ordinary_fields.py | |
| parent | f5b635086a07c9df5897e69685ebdc3a04049ec6 (diff) | |
Refs #28478 -- Prevented database feature based skipping on tests disallowing queries.
Database features may require a connection to be established to determine
whether or not they are enabled.
Diffstat (limited to 'tests/invalid_models_tests/test_ordinary_fields.py')
| -rw-r--r-- | tests/invalid_models_tests/test_ordinary_fields.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/invalid_models_tests/test_ordinary_fields.py b/tests/invalid_models_tests/test_ordinary_fields.py index 3922c835b9..9c7cf7f88c 100644 --- a/tests/invalid_models_tests/test_ordinary_fields.py +++ b/tests/invalid_models_tests/test_ordinary_fields.py @@ -2,7 +2,7 @@ import unittest from django.core.checks import Error, Warning as DjangoWarning from django.db import connection, models -from django.test import SimpleTestCase, skipIfDBFeature +from django.test import SimpleTestCase, TestCase, skipIfDBFeature from django.test.utils import isolate_apps, override_settings from django.utils.functional import lazy from django.utils.timezone import now @@ -680,7 +680,7 @@ class TimeFieldTests(SimpleTestCase): @isolate_apps('invalid_models_tests') -class TextFieldTests(SimpleTestCase): +class TextFieldTests(TestCase): @skipIfDBFeature('supports_index_on_text_field') def test_max_length_warning(self): |
