summaryrefslogtreecommitdiff
path: root/tests/commands_sql
diff options
context:
space:
mode:
Diffstat (limited to 'tests/commands_sql')
-rw-r--r--tests/commands_sql/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/commands_sql/tests.py b/tests/commands_sql/tests.py
index 83c47a888f..5eb9f0191a 100644
--- a/tests/commands_sql/tests.py
+++ b/tests/commands_sql/tests.py
@@ -45,7 +45,7 @@ class SQLCommandsTestCase(TestCase):
'commands_sql_comment', 'commands_sql_book', 'commands_sql_book_comments'
})
- @unittest.skipUnless('PositiveIntegerField' in connections[DEFAULT_DB_ALIAS].creation.data_type_check_constraints, 'Backend does not have checks.')
+ @unittest.skipUnless('PositiveIntegerField' in connections[DEFAULT_DB_ALIAS].data_type_check_constraints, 'Backend does not have checks.')
def test_sql_create_check(self):
"""Regression test for #23416 -- Check that db_params['check'] is respected."""
app_config = apps.get_app_config('commands_sql')