aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui/bug_674.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtGui/bug_674.py')
-rw-r--r--tests/QtGui/bug_674.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/QtGui/bug_674.py b/tests/QtGui/bug_674.py
index 4d015b577..4b9ac193d 100644
--- a/tests/QtGui/bug_674.py
+++ b/tests/QtGui/bug_674.py
@@ -16,7 +16,7 @@ class TestBug679(unittest.TestCase):
scene.clear()
self.assertEqual(sys.getrefcount(hello), 2)
self.assertEqual(len(scene.items()), 0)
- self.assertRaises(RuntimeError, hello.isVisible) # the C++ object was deleted
+ self.assertRaises(RuntimeError, lambda: hello.isVisible) # the C++ object was deleted
if __name__ == '__main__':
unittest.main()