From fae76b81ce6d13245abc42752f0a82f16a9ba35f Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 24 Feb 2023 00:00:00 -0500 Subject: [PATCH] [4.2.x] Refs #34320 -- Added skipIf for a test requiring check constraints. Backport of 40e88ae8c899bcae3a9520f7a6519dd178185f85 from main --- tests/schema/tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/schema/tests.py b/tests/schema/tests.py index 836b02f07f..5a03ac6fd5 100644 --- a/tests/schema/tests.py +++ b/tests/schema/tests.py @@ -2073,6 +2073,9 @@ class SchemaTests(TransactionTestCase): with self.assertRaises(IntegrityError): NoteRename.objects.create(detail_info=None) + @skipUnlessDBFeature( + "supports_column_check_constraints", "can_introspect_check_constraints" + ) @isolate_apps("schema") def test_rename_field_with_check_to_truncated_name(self): class AuthorWithLongColumn(Model):