1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

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

This reverts commit b419bd3843.

Backport of bd3d796ecd 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())