summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_scripts/tests.py
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2011-04-02 08:44:47 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2011-04-02 08:44:47 +0000
commit4c468800ee82d89e715e11af291bb326d47c3ce9 (patch)
tree2a0385363b09028bdab98b1803366af002a62e58 /tests/regressiontests/admin_scripts/tests.py
parent603884505f84290d2379042169deae837e25b722 (diff)
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
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)