Author: Ronan Lamy <ronan.l...@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]
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to