summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-03-08 12:49:06 +0100
committerClaude Paroz <claude@2xlibre.net>2014-03-08 12:49:06 +0100
commitb787ef2dbff957c5b5a64be13f01f985d17ff05b (patch)
tree951ed3c4d9c1952abaa897a4a52825e89d9e4034 /tests/admin_scripts
parent56c80e8b4433df13e2b79f9ac4591d9a970398f5 (diff)
Fixed #21092 -- Ensured admin_scripts tests are run with warnings off
Diffstat (limited to 'tests/admin_scripts')
-rw-r--r--tests/admin_scripts/tests.py1
1 files changed, 1 insertions, 0 deletions
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)