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:55:18 -0500 |
| commit | ec9119d4ecda241342678b1fe7ae2beb26e1040f (patch) | |
| tree | aabe84edf490e5309e056d7f4f89879f31865308 | |
| parent | e4df10668ce68ae71f33649f5d87e814f73d7bd4 (diff) | |
[1.8.x] Fixed "environment can only contain strings" in model_regress test on Windows.
Backport of ad50b6c853f4a6c864219fbd38b4254ffaef7b1c from master
| -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 7f563f497d..aa7002ab27 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'] |
