diff --git a/tests/fixtures/tests.py b/tests/fixtures/tests.py index 4551b11185e..6da00548735 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(), '')