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:29:47 -0400 |
| commit | bf7a35c329858d1309e70f421a308f8aced1c444 (patch) | |
| tree | 31da59227bc646a400766209ab3245f3db152cb6 | |
| parent | 27bed94e9cb4eb712ddda465e6bbd3aca5f15ce4 (diff) | |
[1.9.x] Fixed test_dumpdata_progressbar to use the instantiated StringIO object.
Backport of cacc7e85e17b3d00e7ed856d8bbadb8f870bb5d6 from master
| -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 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(), '') |
