summaryrefslogtreecommitdiff
path: root/tests/fixtures
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2016-03-13 17:19:46 -0700
committerTim Graham <timograham@gmail.com>2016-03-14 10:28:40 -0400
commitcacc7e85e17b3d00e7ed856d8bbadb8f870bb5d6 (patch)
treef2a7bc8fc8f01cc0ee252f69943bec21124f3ed7 /tests/fixtures
parent6aef986cdbff72809b39880132959ef74827492f (diff)
downloaddjango-cacc7e85e17b3d00e7ed856d8bbadb8f870bb5d6.tar.gz
Fixed test_dumpdata_progressbar to use the instantiated StringIO object.
Diffstat (limited to 'tests/fixtures')
-rw-r--r--tests/fixtures/tests.py1
1 files changed, 1 insertions, 0 deletions
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(), '')