From 4290b0d26a18dee187a8048c616f2ec82aa5bd47 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 5 Jun 2010 12:53:51 +0000 Subject: [PATCH] Corrected pre-Python 2.6 syntax incompatibility from r13319. Thanks to Karen Tracey for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13322 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/modeltests/fixtures/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/modeltests/fixtures/tests.py b/tests/modeltests/fixtures/tests.py index ba7ab34141..4facc6dee9 100644 --- a/tests/modeltests/fixtures/tests.py +++ b/tests/modeltests/fixtures/tests.py @@ -25,7 +25,7 @@ class FixtureLoadingTests(TestCase): def _dumpdata_assert(self, args, output, format='json', natural_keys=False): new_io = StringIO.StringIO() - management.call_command('dumpdata', *args, format=format, stdout=new_io, use_natural_keys=natural_keys) + management.call_command('dumpdata', *args, **{'format':format, 'stdout':new_io, 'use_natural_keys':natural_keys}) command_output = new_io.getvalue().strip() self.assertEqual(command_output, output) @@ -236,7 +236,7 @@ if settings.DATABASES[DEFAULT_DB_ALIAS]['ENGINE'] != 'django.db.backends.mysql': class FixtureTransactionTests(TransactionTestCase): def _dumpdata_assert(self, args, output, format='json'): new_io = StringIO.StringIO() - management.call_command('dumpdata', *args, format=format, stdout=new_io) + management.call_command('dumpdata', *args, **{'format':format, 'stdout':new_io}) command_output = new_io.getvalue().strip() self.assertEqual(command_output, output)