Ticket #8268: 8268-r8371.diff
File 8268-r8371.diff, 1.3 KB (added by , 16 years ago) |
---|
-
tests/regressiontests/admin_scripts/tests.py
87 87 # Remember the old environment 88 88 old_django_settings_module = os.environ.get('DJANGO_SETTINGS_MODULE', None) 89 89 old_python_path = os.environ.get('PYTHONPATH', None) 90 old_jython_path = os.environ.get('JYTHONPATH', None) 90 91 old_cwd = os.getcwd() 91 92 92 93 # Set the test environment … … 98 99 if ext_backend_base_dir: 99 100 python_path.append(ext_backend_base_dir) 100 101 os.environ['PYTHONPATH'] = os.pathsep.join(python_path) 102 del os.environ['JYTHONPATH'] 101 103 102 103 104 # Build the command line 104 105 cmd = '%s "%s"' % (self._sys_executable(), script) 105 106 cmd += ''.join([' %s' % arg for arg in args]) … … 119 120 os.environ['DJANGO_SETTINGS_MODULE'] = old_django_settings_module 120 121 if old_python_path: 121 122 os.environ['PYTHONPATH'] = old_python_path 123 if old_jython_path: 124 os.environ['JYTHONPATH'] = old_jython_path 122 125 # Move back to the old working directory 123 126 os.chdir(old_cwd) 124 127