-
Committer:
Scott Moser
-
Date:
2012-11-13 13:48:19 UTC
-
mto:
This revision was merged to the branch mainline in
revision
726.
-
Revision ID:
smoser@ubuntu.com-20121113134819-rjzk85xlqg89dj7p
replace 'with self.assertRaises(Exception):' with different form
I'm guessing that
with self.assertRaises(Exception):
something here
is an acceptable form in a newer or older python. But my
python (2.7.3-0ubuntu7) doesn't like it.
Interestingly, python unittest doc says:
| Changed in version 2.7: Added the ability to use assertRaises() as
| a context manager.