From cacc7e85e17b3d00e7ed856d8bbadb8f870bb5d6 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 13 Mar 2016 17:19:46 -0700 Subject: [PATCH] Fixed test_dumpdata_progressbar to use the instantiated StringIO object. --- tests/fixtures/tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/fixtures/tests.py b/tests/fixtures/tests.py index 4551b11185..6da0054873 100644 --- a/tests/fixtures/tests.py +++ b/tests/fixtures/tests.py @@ -475,6 +475,7 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase): options['verbosity'] = 0 new_io = six.StringIO() new_io.isatty = lambda: True + options.update({'stdout': new_io, 'stderr': new_io}) management.call_command('dumpdata', 'fixtures', **options) self.assertEqual(new_io.getvalue(), '')