mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user