[pypy-commit] pypy py3k: make sure environ keys are upper case for tests
mattip
noreply at buildbot.pypy.org
Fri Jul 31 11:17:40 CEST 2015
Author: mattip <matti.picus at gmail.com>
Branch: py3k
Changeset: r78723:c2e78e986378
Date: 2015-07-31 12:11 +0300
http://bitbucket.org/pypy/pypy/changeset/c2e78e986378/
Log: make sure environ keys are upper case for tests
diff --git a/pypy/module/posix/interp_posix.py b/pypy/module/posix/interp_posix.py
--- a/pypy/module/posix/interp_posix.py
+++ b/pypy/module/posix/interp_posix.py
@@ -524,7 +524,7 @@
# started through main() instead of wmain()
rwin32._wgetenv(u"")
for key, value in rwin32._wenviron_items():
- space.setitem(w_env, space.wrap(key), space.wrap(value))
+ space.setitem(w_env, space.wrap(key.upper()), space.wrap(value))
@unwrap_spec(name=unicode, value=unicode)
def putenv(space, name, value):
More information about the pypy-commit
mailing list