aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/samplebinding/overflow_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/samplebinding/overflow_test.py')
-rw-r--r--sources/shiboken6/tests/samplebinding/overflow_test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/samplebinding/overflow_test.py b/sources/shiboken6/tests/samplebinding/overflow_test.py
index 5635eeed2..8f85760d4 100644
--- a/sources/shiboken6/tests/samplebinding/overflow_test.py
+++ b/sources/shiboken6/tests/samplebinding/overflow_test.py
@@ -46,6 +46,11 @@ from sample import *
class OverflowTest(unittest.TestCase):
'''Test case for overflowing C++ numeric types.'''
+ 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 testUnsignedInt(self):
'''C++ function receives an unsigned int argument and raise OverflowError if the value is negative.'''
val = 100