From 4c468800ee82d89e715e11af291bb326d47c3ce9 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 2 Apr 2011 08:44:47 +0000 Subject: Updates to the test suite to allow for newly deprecated and removed features git-svn-id: http://code.djangoproject.com/svn/django/trunk@15990 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/admin_scripts/tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/regressiontests/admin_scripts') 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) -- cgit v1.3