diff options
Diffstat (limited to 'sources/shiboken6/tests/samplebinding/exception_test.py')
| -rw-r--r-- | sources/shiboken6/tests/samplebinding/exception_test.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/samplebinding/exception_test.py b/sources/shiboken6/tests/samplebinding/exception_test.py index d502609bf..78e583da0 100644 --- a/sources/shiboken6/tests/samplebinding/exception_test.py +++ b/sources/shiboken6/tests/samplebinding/exception_test.py @@ -55,5 +55,16 @@ class CppExceptionTest(unittest.TestCase): self.assertEqual(exceptionCount, 2) + def testModifications(self): + """PYSIDE-1995, test whether exceptions are propagated + when return ownership modifications are generated.""" + exceptionCount = 0 + try: + et = ExceptionTest.create(True); + except: + exceptionCount += 1 + self.assertEqual(exceptionCount, 1) + + if __name__ == '__main__': unittest.main() |
