From b787ef2dbff957c5b5a64be13f01f985d17ff05b Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 8 Mar 2014 12:49:06 +0100 Subject: [PATCH] Fixed #21092 -- Ensured admin_scripts tests are run with warnings off --- tests/admin_scripts/tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index 5564c771c9..f59c337114 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -139,6 +139,7 @@ class AdminScriptTestCase(unittest.TestCase): python_path = [base_dir, django_dir, tests_dir] python_path.extend(ext_backend_base_dirs) test_environ[python_path_var_name] = os.pathsep.join(python_path) + test_environ['PYTHONWARNINGS'] = '' # Move to the test directory and run os.chdir(test_dir)