From 437945146db3c72c9ec54b8497ede8ecc8cd0d45 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Wed, 23 Jul 2008 03:00:50 +0000 Subject: [PATCH] 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 --- tests/regressiontests/admin_scripts/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regressiontests/admin_scripts/tests.py b/tests/regressiontests/admin_scripts/tests.py index b048048d69..7518a1d960 100644 --- a/tests/regressiontests/admin_scripts/tests.py +++ b/tests/regressiontests/admin_scripts/tests.py @@ -53,7 +53,7 @@ class AdminScriptTestCase(unittest.TestCase): base_dir = os.path.dirname(project_dir) # Build the command line - cmd = 'python "%s"' % script + cmd = '%s "%s"' % (sys.executable, script) cmd += ''.join([' %s' % arg for arg in args]) # Remember the old environment