File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,11 @@ class DatabaseFeatures(BaseDatabaseFeatures):
96
96
"expressions.tests.ExpressionOperatorTests.test_lefthand_bitwise_xor_right_null" ,
97
97
"expressions.tests.ExpressionOperatorTests.test_lefthand_transformed_field_bitwise_or" ,
98
98
}
99
+ _django_test_expected_failures_transactions = {
100
+ # When get_or_create() fails with IntegrityError, the transaction is no longer usable.
101
+ "get_or_create.tests.UpdateOrCreateTests.test_manual_primary_key_test" ,
102
+ "get_or_create.tests.UpdateOrCreateTestsWithManualPKs.test_create_with_duplicate_primary_key" ,
103
+ }
99
104
100
105
@cached_property
101
106
def supports_transactions (self ):
@@ -125,6 +130,8 @@ def django_test_expected_failures(self):
125
130
expected_failures .update (self ._django_test_expected_failures )
126
131
if not self .is_mongodb_6_3 :
127
132
expected_failures .update (self ._django_test_expected_failures_bitwise )
133
+ if self .supports_transactions :
134
+ expected_failures .update (self ._django_test_expected_failures_transactions )
128
135
return expected_failures
129
136
130
137
django_test_skips = {
You can’t perform that action at this time.
0 commit comments