Author: russellm Date: 2010-06-05 07:53:51 -0500 (Sat, 05 Jun 2010) New Revision: 13322
Modified: django/trunk/tests/modeltests/fixtures/tests.py Log: Corrected pre-Python 2.6 syntax incompatibility from r13319. Thanks to Karen Tracey for the report. Modified: django/trunk/tests/modeltests/fixtures/tests.py =================================================================== --- django/trunk/tests/modeltests/fixtures/tests.py 2010-06-05 06:37:52 UTC (rev 13321) +++ django/trunk/tests/modeltests/fixtures/tests.py 2010-06-05 12:53:51 UTC (rev 13322) @@ -25,7 +25,7 @@ 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 @@ 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) -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.