0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Fixed test failures on Windows.

refs #21092 and 8d7e048a8b
This commit is contained in:
Tim Graham 2014-03-11 10:46:13 -04:00
parent 6d3ebe10f4
commit c4f772ed34

View File

@ -133,7 +133,7 @@ class AdminScriptTestCase(unittest.TestCase):
# Set the test environment
if settings_file:
test_environ['DJANGO_SETTINGS_MODULE'] = settings_file
test_environ['DJANGO_SETTINGS_MODULE'] = str(settings_file)
elif 'DJANGO_SETTINGS_MODULE' in test_environ:
del test_environ['DJANGO_SETTINGS_MODULE']
python_path = [base_dir, django_dir, tests_dir]