aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-03-16 11:40:50 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:03 -0300
commit9fd4705cf6093b7962ac6b82668362cb00db0341 (patch)
treedae89cc1f5fe6f153b318dcb79e9114a6fca74aa
parent734e08632729128135844b5c98817b4881a00a68 (diff)
Fixed test for bug #674 to works with new getattr check.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Marcelo Lira <marcelo.lira@openbossa.org>
-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()