Django

Code

Changeset 8149

Show
Ignore:
Timestamp:
07/30/08 04:29:51 (5 months ago)
Author:
russellm
Message:

Fixed #8029 -- Modified admin_scripts test to use the PYTHONPATH from the environment where the test is executed. Thanks to Ramiro and Alex Gaynor for the report.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/regressiontests/admin_scripts/tests.py

    r8108 r8149  
    6868            del os.environ['DJANGO_SETTINGS_MODULE'] 
    6969 
    70         os.environ['PYTHONPATH'] = os.pathsep.join([test_dir,base_dir]) 
     70        if old_python_path: 
     71            os.environ['PYTHONPATH'] = os.pathsep.join([test_dir, base_dir, old_python_path]) 
     72        else: 
     73            os.environ['PYTHONPATH'] = os.pathsep.join([test_dir, base_dir]) 
    7174 
    7275        # Move to the test directory and run