summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_scripts/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regressiontests/admin_scripts/tests.py')
-rw-r--r--tests/regressiontests/admin_scripts/tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/regressiontests/admin_scripts/tests.py b/tests/regressiontests/admin_scripts/tests.py
index 290a3cad7c..32183fad3e 100644
--- a/tests/regressiontests/admin_scripts/tests.py
+++ b/tests/regressiontests/admin_scripts/tests.py
@@ -108,10 +108,12 @@ class AdminScriptTestCase(unittest.TestCase):
# Build the command line
executable = sys.executable
arg_string = ' '.join(['%s' % arg for arg in args])
+ # Silence the DeprecationWarning caused by having a locale directory
+ # in the project directory.
if ' ' in executable:
- cmd = '""%s" "%s" %s"' % (executable, script, arg_string)
+ cmd = '""%s" -Wignore:::django.utils.translation "%s" %s"' % (executable, script, arg_string)
else:
- cmd = '%s "%s" %s' % (executable, script, arg_string)
+ cmd = '%s -Wignore:::django.utils.translation "%s" %s' % (executable, script, arg_string)
# Move to the test directory and run
os.chdir(test_dir)