[1.11.x] Refs #29499 -- Skipped QuerySet.update_or_create() test that fails on MySQL.

This commit is contained in:
Tim Graham 2018-08-03 12:13:06 -04:00
parent 2668418d99
commit 8a0b905187

View File

@ -4,6 +4,7 @@ import time
import traceback
from datetime import date, datetime, timedelta
from threading import Thread
from unittest import skipIf
from django.core.exceptions import FieldError
from django.db import DatabaseError, IntegrityError, connection
@ -509,6 +510,7 @@ class UpdateOrCreateTransactionTests(TransactionTestCase):
self.assertGreater(after_update - before_start, timedelta(seconds=0.5))
self.assertEqual(updated_person.last_name, 'NotLennon')
@skipIf(connection.vendor == 'mysql', "MySQL's default isolation level is repeatable read.")
@skipUnlessDBFeature('has_select_for_update')
@skipUnlessDBFeature('supports_transactions')
def test_creation_in_transaction(self):