From ad50b6c853f4a6c864219fbd38b4254ffaef7b1c Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 17 Feb 2015 13:54:18 -0500 Subject: [PATCH] Fixed "environment can only contain strings" in model_regress test on Windows. --- tests/model_regress/test_pickle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']