Ticket #20198: patch_20198.diff

File patch_20198.diff, 687 bytes (added by Chris Lawlor <lawlor.chris@…>, 12 years ago)
  • tests/modeltests/fixtures/tests.py

    diff --git a/tests/modeltests/fixtures/tests.py b/tests/modeltests/fixtures/tests.py
    index f9b0ac8..fe88579 100644
    a b class FixtureLoadingTests(TestCase):  
    251251        if connection.vendor == 'mysql':
    252252            connection.cursor().execute("SET sql_mode = 'TRADITIONAL'")
    253253        with six.assertRaisesRegex(self, IntegrityError,
    254                 "Could not load fixtures.Article\(pk=1\): .*$"):
     254                "Could not load fixtures.Article\(pk=1\): .*"):
    255255            management.call_command('loaddata', 'invalid.json', verbosity=0, commit=False)
    256256
    257257    def test_loading_using(self):
Back to Top