diff options
Diffstat (limited to 'sources/shiboken6/tests/samplebinding/privatector_test.py')
| -rw-r--r-- | sources/shiboken6/tests/samplebinding/privatector_test.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/samplebinding/privatector_test.py b/sources/shiboken6/tests/samplebinding/privatector_test.py index b06c65944..9da95bc0d 100644 --- a/sources/shiboken6/tests/samplebinding/privatector_test.py +++ b/sources/shiboken6/tests/samplebinding/privatector_test.py @@ -47,6 +47,11 @@ from sample import PrivateCtor class PrivateCtorTest(unittest.TestCase): '''Test case for PrivateCtor class''' + def assertRaises(self, *args, **kwds): + if not hasattr(sys, "pypy_version_info"): + # PYSIDE-535: PyPy complains "Fatal RPython error: NotImplementedError" + return super().assertRaises(*args, **kwds) + def testPrivateCtorInstanciation(self): '''Test if instanciation of class with a private constructor raises an exception.''' self.assertRaises(TypeError, PrivateCtor) |
