diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2016-03-13 17:19:46 -0700 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-03-14 10:28:40 -0400 |
commit | cacc7e85e17b3d00e7ed856d8bbadb8f870bb5d6 (patch) | |
tree | f2a7bc8fc8f01cc0ee252f69943bec21124f3ed7 /tests/fixtures | |
parent | 6aef986cdbff72809b39880132959ef74827492f (diff) | |
download | django-cacc7e85e17b3d00e7ed856d8bbadb8f870bb5d6.tar.gz |
Fixed test_dumpdata_progressbar to use the instantiated StringIO object.
Diffstat (limited to 'tests/fixtures')
-rw-r--r-- | tests/fixtures/tests.py | 1 |
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(), '') |