From 90fab13583224a69490b5ef67b086d7ef4d2bb14 Mon Sep 17 00:00:00 2001 From: Paul McMillan Date: Fri, 2 Jul 2010 19:14:58 +0000 Subject: [PATCH] [soc2010/test-refactor] Can't use class decorators in python 2.4. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2010/test-refactor@13418 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/modeltests/fixtures/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/modeltests/fixtures/tests.py b/tests/modeltests/fixtures/tests.py index 8696ec2fb6..38d59f5a1c 100644 --- a/tests/modeltests/fixtures/tests.py +++ b/tests/modeltests/fixtures/tests.py @@ -230,7 +230,6 @@ class FixtureLoadingTests(TestCase): self._dumpdata_assert(['fixtures'], """ News StoriesLatest news storiesTime to reform copyright2006-06-16 13:00:00Poker has no place on ESPN2006-06-16 12:00:00Python program becomes self aware2006-06-16 11:00:00copyrightfixturesarticle3lawfixturesarticle3Django ReinhardtPrinceStephane Grappelli""", format='xml', natural_keys=True) -@skipIfDBEngine('django.db.backends.mysql') class FixtureTransactionTests(TransactionTestCase): def _dumpdata_assert(self, args, output, format='json'): new_io = StringIO.StringIO() @@ -238,6 +237,7 @@ class FixtureTransactionTests(TransactionTestCase): command_output = new_io.getvalue().strip() self.assertEqual(command_output, output) + @skipIfDBEngine('django.db.backends.mysql') def test_format_discovery(self): # Load fixture 1 again, using format discovery management.call_command('loaddata', 'fixture1', verbosity=0, commit=False)