mirror of https://github.com/django/django.git
[1.8.x] Fixed "environment can only contain strings" in model_regress test on Windows.
Backport of ad50b6c853
from master
This commit is contained in:
parent
e4df10668c
commit
ec9119d4ec
|
@ -88,7 +88,7 @@ print(article.headline)"""
|
||||||
str('PYTHONPATH'): os.pathsep.join(sys.path),
|
str('PYTHONPATH'): os.pathsep.join(sys.path),
|
||||||
# Needed on Windows because http://bugs.python.org/issue8557
|
# Needed on Windows because http://bugs.python.org/issue8557
|
||||||
str('PATH'): os.environ['PATH'],
|
str('PATH'): os.environ['PATH'],
|
||||||
str('LANG'): os.environ.get('LANG'),
|
str('LANG'): os.environ.get('LANG', ''),
|
||||||
}
|
}
|
||||||
if 'SYSTEMROOT' in os.environ: # Windows http://bugs.python.org/issue20614
|
if 'SYSTEMROOT' in os.environ: # Windows http://bugs.python.org/issue20614
|
||||||
env[str('SYSTEMROOT')] = os.environ['SYSTEMROOT']
|
env[str('SYSTEMROOT')] = os.environ['SYSTEMROOT']
|
||||||
|
|
Loading…
Reference in New Issue