[pypy-commit] pypy py3.5: skip or tweak tests
rlamy
pypy.commits at gmail.com
Tue Nov 14 15:13:11 EST 2017
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r93020:6f9bbe108de5
Date: 2017-11-14 20:12 +0000
http://bitbucket.org/pypy/pypy/changeset/6f9bbe108de5/
Log: skip or tweak tests
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
@@ -53,6 +53,8 @@
self.assertEqual(testfunction.attribute, "test")
self.assertRaises(AttributeError, setattr, inst.testfunction, "attribute", "test")
+ @unittest.skipIf(support.check_impl_detail(pypy=True),
+ "doesn't crash on PyPy")
@unittest.skipUnless(threading, 'Threading required for this test.')
def test_no_FatalError_infinite_loop(self):
with support.SuppressCrashReport():
@@ -205,9 +207,9 @@
else:
with self.assertRaises(SystemError) as cm:
_testcapi.return_null_without_error()
+ # PyPy change: different message
self.assertRegex(str(cm.exception),
- 'return_null_without_error.* '
- 'returned NULL without setting an error')
+ 'Function returned a NULL result without setting an exception')
def test_return_result_with_error(self):
# Issue #23571: A function must not return a result with an error set
@@ -237,9 +239,9 @@
else:
with self.assertRaises(SystemError) as cm:
_testcapi.return_result_with_error()
+ # PyPy change: different message
self.assertRegex(str(cm.exception),
- 'return_result_with_error.* '
- 'returned a result with an error set')
+ 'An exception was set, but function returned a value')
def test_buildvalue_N(self):
_testcapi.test_buildvalue_N()
@@ -327,6 +329,8 @@
self.pendingcalls_wait(l, n)
+ at unittest.skipIf(support.check_impl_detail(pypy=True),
+ "subinterpreters not implemented on PyPy")
class SubinterpreterTest(unittest.TestCase):
def test_subinterps(self):
More information about the pypy-commit
mailing list