diff options
author | Tim Graham <timograham@gmail.com> | 2015-02-17 13:54:18 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-02-17 13:54:18 -0500 |
commit | ad50b6c853f4a6c864219fbd38b4254ffaef7b1c (patch) | |
tree | 80a92add33f416732fef484ccddcbaca471f2769 /tests/model_regress | |
parent | 32b67b3fd1d252566f60cf38fe1459bb83de2ce2 (diff) | |
download | django-ad50b6c853f4a6c864219fbd38b4254ffaef7b1c.tar.gz |
Fixed "environment can only contain strings" in model_regress test on Windows.
Diffstat (limited to 'tests/model_regress')
-rw-r--r-- | tests/model_regress/test_pickle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/model_regress/test_pickle.py b/tests/model_regress/test_pickle.py index 2c02d4f298..96a6470108 100644 --- a/tests/model_regress/test_pickle.py +++ b/tests/model_regress/test_pickle.py @@ -88,7 +88,7 @@ print(article.headline)""" str('PYTHONPATH'): os.pathsep.join(sys.path), # Needed on Windows because http://bugs.python.org/issue8557 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 env[str('SYSTEMROOT')] = os.environ['SYSTEMROOT'] |