From bf7a35c329858d1309e70f421a308f8aced1c444 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 13 Mar 2016 17:19:46 -0700 Subject: [PATCH] [1.9.x] Fixed test_dumpdata_progressbar to use the instantiated StringIO object. Backport of cacc7e85e17b3d00e7ed856d8bbadb8f870bb5d6 from master --- tests/fixtures/tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/fixtures/tests.py b/tests/fixtures/tests.py index 86164e03bc..31b6f16c8a 100644 --- a/tests/fixtures/tests.py +++ b/tests/fixtures/tests.py @@ -478,6 +478,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(), '')