diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-12-01 21:26:20 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-12-01 21:31:09 -0300 |
commit | 3c433205280de89d4d7709dfb29426492fdbdbe6 (patch) | |
tree | ffd68b0fefae3ec2a2207380b8f9bfbac5448dc5 /tests/samplebinding/ownership_invalidate_after_use_test.py | |
parent | 9fdba4372215c5fe243eacf8ca10ce51904b5d69 (diff) |
Removed all undue usage of lambda with assertRaises on unit tests.
Reviewed by Lauro Neto <lauro.neto@openbossa.org>
Diffstat (limited to 'tests/samplebinding/ownership_invalidate_after_use_test.py')
-rwxr-xr-x | tests/samplebinding/ownership_invalidate_after_use_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/samplebinding/ownership_invalidate_after_use_test.py b/tests/samplebinding/ownership_invalidate_after_use_test.py index 5f9930e12..80f252d51 100755 --- a/tests/samplebinding/ownership_invalidate_after_use_test.py +++ b/tests/samplebinding/ownership_invalidate_after_use_test.py @@ -59,7 +59,7 @@ class OwnershipInvalidateAfterUseTest(unittest.TestCase): ot = ObjectType() eot.causeEvent(Event.ANY_EVENT) self.assertEqual(eot.type_of_last_event, Event.ANY_EVENT) - self.assertRaises(RuntimeError, lambda : ot.event(eot.last_event)) + self.assertRaises(RuntimeError, ot.event, eot.last_event) if __name__ == '__main__': unittest.main() |