mirror of https://github.com/django/django.git
Fixed #21092 -- Ensured admin_scripts tests are run with warnings off
This commit is contained in:
parent
56c80e8b44
commit
b787ef2dbf
|
@ -139,6 +139,7 @@ class AdminScriptTestCase(unittest.TestCase):
|
||||||
python_path = [base_dir, django_dir, tests_dir]
|
python_path = [base_dir, django_dir, tests_dir]
|
||||||
python_path.extend(ext_backend_base_dirs)
|
python_path.extend(ext_backend_base_dirs)
|
||||||
test_environ[python_path_var_name] = os.pathsep.join(python_path)
|
test_environ[python_path_var_name] = os.pathsep.join(python_path)
|
||||||
|
test_environ['PYTHONWARNINGS'] = ''
|
||||||
|
|
||||||
# Move to the test directory and run
|
# Move to the test directory and run
|
||||||
os.chdir(test_dir)
|
os.chdir(test_dir)
|
||||||
|
|
Loading…
Reference in New Issue