Author: russellm
Date: 2008-07-10 08:53:45 -0500 (Thu, 10 Jul 2008)
New Revision: 7877
Modified:
django/trunk/tests/regressiontests/admin_scripts/tests.py
Log:
Corrected a bug in [7876] picked up by the buildbot: depending on the order in
which tests are run, some tests would fail because of a dependency on the
current working directory.
Modified: django/trunk/tests/regressiontests/admin_scripts/tests.py
===================================================================
--- django/trunk/tests/regressiontests/admin_scripts/tests.py 2008-07-10
12:12:41 UTC (rev 7876)
+++ django/trunk/tests/regressiontests/admin_scripts/tests.py 2008-07-10
13:53:45 UTC (rev 7877)
@@ -58,6 +58,7 @@
# Remember the old environment
old_django_settings_module = os.environ.get('DJANGO_SETTINGS_MODULE',
None)
old_python_path = os.environ.get('PYTHONPATH', None)
+ old_cwd = os.getcwd()
# Set the test environment
if settings_file:
@@ -77,6 +78,9 @@
os.environ['DJANGO_SETTINGS_MODULE'] = old_django_settings_module
if old_python_path:
os.environ['PYTHONPATH'] = old_python_path
+
+ # Move back to the old working directory
+ os.chdir(old_cwd)
return out, err
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---