Author: Ronan Lamy <[email protected]>
Branch: cleanup-test_lib_pypy
Changeset: r95409:21f49a179752
Date: 2018-11-30 05:44 +0000
http://bitbucket.org/pypy/pypy/changeset/21f49a179752/
Log: Make test work on CPython
diff --git a/extra_tests/test_code.py b/extra_tests/test_code.py
--- a/extra_tests/test_code.py
+++ b/extra_tests/test_code.py
@@ -1,4 +1,3 @@
-import py
import sys
import cStringIO
import code
@@ -14,6 +13,7 @@
finally:
sys.stdout = old_stdout
- if '__pypy__' not in sys.builtin_module_names:
- py.test.skip('pypy only test')
- assert mystdout.getvalue() == "5\n"
+ if '__pypy__' in sys.builtin_module_names:
+ assert mystdout.getvalue() == "5\n"
+ else:
+ assert mystdout.getvalue() == "5"
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit