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>
This commit is contained in:
parent
734e086327
commit
9fd4705cf6
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ class TestBug679(unittest.TestCase):
|
||||||
scene.clear()
|
scene.clear()
|
||||||
self.assertEqual(sys.getrefcount(hello), 2)
|
self.assertEqual(sys.getrefcount(hello), 2)
|
||||||
self.assertEqual(len(scene.items()), 0)
|
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__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue