mirror of
https://github.com/django/django.git
synced 2025-09-29 05:24:55 +00:00
[4.2.x] Refs #34320 -- Added skipIf for a test requiring check constraints.
Backport of 40e88ae8c8
from main
This commit is contained in:
parent
fc15d11f2e
commit
fae76b81ce
1 changed files with 3 additions and 0 deletions
|
@ -2073,6 +2073,9 @@ class SchemaTests(TransactionTestCase):
|
||||||
with self.assertRaises(IntegrityError):
|
with self.assertRaises(IntegrityError):
|
||||||
NoteRename.objects.create(detail_info=None)
|
NoteRename.objects.create(detail_info=None)
|
||||||
|
|
||||||
|
@skipUnlessDBFeature(
|
||||||
|
"supports_column_check_constraints", "can_introspect_check_constraints"
|
||||||
|
)
|
||||||
@isolate_apps("schema")
|
@isolate_apps("schema")
|
||||||
def test_rename_field_with_check_to_truncated_name(self):
|
def test_rename_field_with_check_to_truncated_name(self):
|
||||||
class AuthorWithLongColumn(Model):
|
class AuthorWithLongColumn(Model):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue