diff options
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/qlcdnumber_test.py')
| -rw-r--r-- | sources/pyside6/tests/QtWidgets/qlcdnumber_test.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtWidgets/qlcdnumber_test.py b/sources/pyside6/tests/QtWidgets/qlcdnumber_test.py index fb7c4b578..752786d83 100644 --- a/sources/pyside6/tests/QtWidgets/qlcdnumber_test.py +++ b/sources/pyside6/tests/QtWidgets/qlcdnumber_test.py @@ -41,6 +41,11 @@ from PySide6.QtWidgets import QApplication, QLCDNumber class QLCDNumberOverflow(unittest.TestCase): '''Test case for unhandled overflow on QLCDNumber() numDigits argument (see bug #215).''' + 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 setUp(self): self.app = QApplication([]) |
