mirror of
https://github.com/django/django.git
synced 2025-08-01 09:32:50 +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:
parent
603884505f
commit
4c468800ee
28 changed files with 255 additions and 298 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue