Commit ec9119d4 authored by Tim Graham's avatar Tim Graham
Browse files

[1.8.x] Fixed "environment can only contain strings" in model_regress test on Windows.

Backport of ad50b6c8 from master
parent e4df1066
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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']