aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/samplebinding/implicitconv_numerical_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/tests/samplebinding/implicitconv_numerical_test.py')
-rw-r--r--sources/shiboken6/tests/samplebinding/implicitconv_numerical_test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/samplebinding/implicitconv_numerical_test.py b/sources/shiboken6/tests/samplebinding/implicitconv_numerical_test.py
index 0e3e99d64..0a1376072 100644
--- a/sources/shiboken6/tests/samplebinding/implicitconv_numerical_test.py
+++ b/sources/shiboken6/tests/samplebinding/implicitconv_numerical_test.py
@@ -57,6 +57,11 @@ if is64bitArchitecture and sys.platform != 'win32':
class NumericTester(unittest.TestCase):
'''Helper class for numeric comparison testing'''
+ 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 check_value(self, source, expected, callback, desired_type=None):
result = callback(source)
self.assertEqual(result, expected)