Refs #24075 -- Silenced needless call_command output while running tests

Thanks Tim Graham for the report
This commit is contained in:
Markus Holtermann 2015-01-15 21:07:39 +01:00
parent 67dbc56ec8
commit 51dc617b21
2 changed files with 4 additions and 4 deletions

View File

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

View File

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