From 7cb4a82eaf2c6b59a80699ae91b63180eb8a47ef Mon Sep 17 00:00:00 2001 From: areski Date: Tue, 29 Jul 2014 15:18:44 +0200 Subject: [1.7.x] Fixed #23107 -- Made runserver output respect --no-color. Backport of 67d7da5fb9 from master --- tests/admin_scripts/tests.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/admin_scripts') diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index 00498e122f..da00841cdb 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -1385,6 +1385,7 @@ class CommandTypes(AdminScriptTestCase): out = StringIO() call_command('color_command', no_color=True, stdout=out) + self.assertEqual(os.environ.get('DJANGO_COLORS', ''), 'nocolor') self.assertEqual(out.getvalue(), 'BEGIN\n') def test_base_command(self): -- cgit v1.3