Fixed #7906 -- Modified admin_scripts regression test to use the same python executable that is running the test suite, rather than using 'python' on the path. Thanks to Chris Hasenpflug for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8056 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c5a76a3669
commit
437945146d
|
@ -53,7 +53,7 @@ class AdminScriptTestCase(unittest.TestCase):
|
||||||
base_dir = os.path.dirname(project_dir)
|
base_dir = os.path.dirname(project_dir)
|
||||||
|
|
||||||
# Build the command line
|
# Build the command line
|
||||||
cmd = 'python "%s"' % script
|
cmd = '%s "%s"' % (sys.executable, script)
|
||||||
cmd += ''.join([' %s' % arg for arg in args])
|
cmd += ''.join([' %s' % arg for arg in args])
|
||||||
|
|
||||||
# Remember the old environment
|
# Remember the old environment
|
||||||
|
|
Loading…
Reference in New Issue