From b2b5ea88b7159a89e373a71f215596de4d8b015f Mon Sep 17 00:00:00 2001 From: Markus Holtermann Date: Sat, 7 Feb 2015 19:22:31 +0100 Subject: [PATCH] [1.8.x] Revert "Refs #24075 -- Silenced needless call_command output while running tests" This reverts commit 51dc617b21e67636d96cf645905797a4d6ff4bf0. Backport of bd3d796ecd9a66832ad26024df65caeb63b60a5d from master --- django/contrib/auth/tests/test_management.py | 4 ++-- django/contrib/contenttypes/tests/tests.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/django/contrib/auth/tests/test_management.py b/django/contrib/auth/tests/test_management.py index 24e4317392..36b81a8ceb 100644 --- a/django/contrib/auth/tests/test_management.py +++ b/django/contrib/auth/tests/test_management.py @@ -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", verbosity=0) + call_command("migrate", "auth", "zero", stdout=six.StringIO()) finally: - call_command("migrate", verbosity=0) + call_command("migrate", stdout=six.StringIO()) diff --git a/django/contrib/contenttypes/tests/tests.py b/django/contrib/contenttypes/tests/tests.py index f41732b6b5..ba0c339007 100644 --- a/django/contrib/contenttypes/tests/tests.py +++ b/django/contrib/contenttypes/tests/tests.py @@ -255,9 +255,9 @@ class ContentTypesTests(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()) def test_name_deprecation(self): """