From ec9119d4ecda241342678b1fe7ae2beb26e1040f Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 17 Feb 2015 13:54:18 -0500 Subject: [PATCH] [1.8.x] Fixed "environment can only contain strings" in model_regress test on Windows. Backport of ad50b6c853f4a6c864219fbd38b4254ffaef7b1c from master --- 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 7f563f497dd..aa7002ab273 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']