diff options
Diffstat (limited to 'tests/commands_sql')
| -rw-r--r-- | tests/commands_sql/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/commands_sql/tests.py b/tests/commands_sql/tests.py index a74aab9d6a..24d477f2f6 100644 --- a/tests/commands_sql/tests.py +++ b/tests/commands_sql/tests.py @@ -11,7 +11,7 @@ from django.core.management.sql import ( from django.db import DEFAULT_DB_ALIAS, connections from django.test import TestCase, ignore_warnings, override_settings from django.utils import six -from django.utils.deprecation import RemovedInDjango20Warning +from django.utils.deprecation import RemovedInDjango110Warning # See also initial_sql_regress for 'custom_sql_for_model' tests @@ -68,7 +68,7 @@ class SQLCommandsTestCase(TestCase): sql = drop_tables[-1].lower() six.assertRegex(self, sql, r'^drop table .commands_sql_comment.*') - @ignore_warnings(category=RemovedInDjango20Warning) + @ignore_warnings(category=RemovedInDjango110Warning) def test_sql_indexes(self): app_config = apps.get_app_config('commands_sql') output = sql_indexes(app_config, no_style(), connections[DEFAULT_DB_ALIAS]) @@ -81,7 +81,7 @@ class SQLCommandsTestCase(TestCase): # Number of indexes is backend-dependent self.assertTrue(1 <= self.count_ddl(output, 'DROP INDEX') <= 4) - @ignore_warnings(category=RemovedInDjango20Warning) + @ignore_warnings(category=RemovedInDjango110Warning) def test_sql_all(self): app_config = apps.get_app_config('commands_sql') output = sql_all(app_config, no_style(), connections[DEFAULT_DB_ALIAS]) |
