Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Corrected pre-Python 2.6 syntax incompatibility from r13319. Thanks t…

…o Karen Tracey for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13322 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4290b0d26a18dee187a8048c616f2ec82aa5bd47 1 parent 289f419
Russell Keith-Magee freakboy3742 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/modeltests/fixtures/tests.py
4 tests/modeltests/fixtures/tests.py
View
@@ -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 @@ def test_output_formats(self):
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)
Please sign in to comment.
Something went wrong with that request. Please try again.