[pypy-commit] pypy py3.5: Fix test (os.environ != posix.environ)
rlamy
pypy.commits at gmail.com
Mon Feb 19 15:23:15 EST 2018
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r93833:f7cdc20cd320
Date: 2018-02-19 20:22 +0000
http://bitbucket.org/pypy/pypy/changeset/f7cdc20cd320/
Log: Fix test (os.environ != posix.environ)
diff --git a/pypy/module/posix/test/test_posix2.py b/pypy/module/posix/test/test_posix2.py
--- a/pypy/module/posix/test/test_posix2.py
+++ b/pypy/module/posix/test/test_posix2.py
@@ -1478,10 +1478,9 @@
def test_environ(self):
import sys, os
environ = os.environ
- item_type = str if sys.platform.startswith('win') else bytes
for k, v in environ.items():
- assert type(k) is item_type
- assert type(v) is item_type
+ assert type(k) is str
+ assert type(v) is str
name = next(iter(environ))
assert environ[name] is not None
del environ[name]
More information about the pypy-commit
mailing list