From 32c07645b23516dc57a586ec4cd46fd98380d849 Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Sun, 18 Apr 2021 18:58:18 +0200 Subject: 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 --- sources/shiboken6/tests/samplebinding/injectcode_test.py | 2 ++ 1 file changed, 2 insertions(+) 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.") -- cgit v1.2.3