[pypy-commit] pypy py3.5: trivial test fixes for win
mattip
pypy.commits at gmail.com
Thu Mar 1 05:37:35 EST 2018
Author: Matti Picus <matti.picus at gmail.com>
Branch: py3.5
Changeset: r93930:934b5f719f0d
Date: 2018-03-01 05:36 -0500
http://bitbucket.org/pypy/pypy/changeset/934b5f719f0d/
Log: trivial test fixes for win
diff --git a/pypy/module/imp/test/test_app.py b/pypy/module/imp/test/test_app.py
--- a/pypy/module/imp/test/test_app.py
+++ b/pypy/module/imp/test/test_app.py
@@ -82,7 +82,7 @@
import imp
for suffix, mode, type in imp.get_suffixes():
if type == imp.PY_SOURCE:
- assert suffix == '.py'
+ assert suffix in ('.py', '.pyw')
assert mode == 'r'
elif type == imp.PY_COMPILED:
assert suffix == '.pyc'
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,6 +1478,8 @@
def test_environ(self):
import sys, os
environ = os.environ
+ if not environ:
+ skip('environ not filled in for untranslated tests')
for k, v in environ.items():
assert type(k) is str
assert type(v) is str
More information about the pypy-commit
mailing list