[pypy-commit] pypy py3k: o bring over the rest of the _testcapi skips from default
pjenvey
noreply at buildbot.pypy.org
Sun Apr 14 01:40:09 CEST 2013
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r63330:16f053aecc5d
Date: 2013-04-13 16:38 -0700
http://bitbucket.org/pypy/pypy/changeset/16f053aecc5d/
Log: o bring over the rest of the _testcapi skips from default o skip
test_{Z,u}_code too as we currently lack PY_SSIZE_T_CLEAN support
diff --git a/lib-python/3/test/test_capi.py b/lib-python/3/test/test_capi.py
--- a/lib-python/3/test/test_capi.py
+++ b/lib-python/3/test/test_capi.py
@@ -16,6 +16,17 @@
threading = None
import _testcapi
+skips = []
+if support.check_impl_detail(pypy=True):
+ skips += [
+ 'test_Z_code', # test_{Z,u}_code require PY_SSIZE_T_CLEAN support
+ 'test_u_code',
+ 'test_broken_memoryview',
+ 'test_capsule',
+ 'test_lazy_hash_inheritance',
+ 'test_widechar',
+ 'TestThreadState'
+ ]
def testfunction(self):
"""some doc"""
@@ -198,7 +209,7 @@
support.run_unittest(CAPITest, TestPendingCalls, Test6012, EmbeddingTest)
for name in dir(_testcapi):
- if name.startswith('test_'):
+ if name.startswith('test_') and name not in skips:
test = getattr(_testcapi, name)
if support.verbose:
print("internal", name)
@@ -222,7 +233,7 @@
raise support.TestFailed(
"Couldn't find main thread correctly in the list")
- if threading:
+ if threading and 'TestThreadState' not in skips:
import _thread
import time
TestThreadState()
More information about the pypy-commit
mailing list