1
0
mirror of https://github.com/django/django.git synced 2025-03-21 23:00:44 +00:00

[1.7.x] Revert "[1.7.x] Refs #24075 -- Silenced needless call_command output while running tests"

This reverts commit b419bd38431b83eec93376cd911e2b17eb8e7342.

Backport of bd3d796ecd9a66832ad26024df65caeb63b60a5d from master
This commit is contained in:
Markus Holtermann 2015-02-07 19:57:50 +01:00
parent d3404c1ca8
commit e6ffe43b67
2 changed files with 4 additions and 4 deletions

View File

@ -521,6 +521,6 @@ class MigrateTests(TestCase):
INSTALLED_APPS=["django.contrib.auth", "django.contrib.contenttypes"],
MIGRATION_MODULES={'auth': 'django.contrib.auth.migrations'},
):
call_command("migrate", "auth", "zero", verbosity=0)
call_command("migrate", "auth", "zero", stdout=six.StringIO())
finally:
call_command("migrate", verbosity=0)
call_command("migrate", stdout=six.StringIO())

View File

@ -259,6 +259,6 @@ class MigrateTests(TestCase):
INSTALLED_APPS=["django.contrib.contenttypes"],
MIGRATION_MODULES={'contenttypes': 'django.contrib.contenttypes.migrations'},
):
call_command("migrate", "contenttypes", "zero", verbosity=0)
call_command("migrate", "contenttypes", "zero", stdout=six.StringIO())
finally:
call_command("migrate", verbosity=0)
call_command("migrate", stdout=six.StringIO())