Author: Ronan Lamy <[email protected]>
Branch: py3k
Changeset: r87418:101d0434327d
Date: 2016-09-27 19:00 +0100
http://bitbucket.org/pypy/pypy/changeset/101d0434327d/
Log: Skip PyPy-specific test on CPython
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
@@ -1,7 +1,9 @@
from __future__ import with_statement
+import pytest
from rpython.tool.udir import udir
+
class AppTestImpModule:
# cpyext is required for _imp.load_dynamic()
spaceconfig = {
@@ -289,4 +291,6 @@
def test_get_tag(self):
import imp
import sys
+ if not hasattr(sys, 'pypy_version_info'):
+ skip('This test is PyPy-only')
assert imp.get_tag() == 'pypy3-%d%d' % sys.pypy_version_info[0:2]
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit