aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2021-04-18 18:58:18 +0200
committerChristian Tismer <tismer@stackless.com>2021-11-19 14:53:57 +0100
commit32c07645b23516dc57a586ec4cd46fd98380d849 (patch)
tree94fefdd355d7ca1773b6579b07b3ea040c4ae261
parentcd67ab30927eed01ad3f068309033edca0478a3a (diff)
PyPySide: fix a test that cannot yet work in PyPy
The test injectcode_test.py modifies a field of PyType_Object which is not yet supported. This brings the number of errors down to 66. Task-number: PYSIDE-535 Change-Id: I6375ddb00b1d9bff494fab4409d839feccfaba05 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r--sources/shiboken6/tests/samplebinding/injectcode_test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/samplebinding/injectcode_test.py b/sources/shiboken6/tests/samplebinding/injectcode_test.py
index a6fb7a5ef..0a90172ec 100644
--- a/sources/shiboken6/tests/samplebinding/injectcode_test.py
+++ b/sources/shiboken6/tests/samplebinding/injectcode_test.py
@@ -51,6 +51,8 @@ class MyInjectCode(InjectCode):
class InjectCodeTest(unittest.TestCase):
+ @unittest.skipIf(hasattr(sys, "pypy_version_info"),
+ "PyPy type objects cannot be modified (yet) after creation")
def testTypeNativeBeginning_TypeTargetBeginning(self):
ic = InjectCode()
self.assertEqual(str(ic), "Hi! I'm the inject code dummy class.")