diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-11-13 08:48:19 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-11-13 08:48:19 -0500 |
commit | cd8fbfffdf7ba9ba79d39ee7b4a223d1bd7863b4 (patch) | |
tree | 57d45de94ed5aeb8a6e03b6fb6366af43ffdd3c6 /upstart | |
parent | 8e86b79e8a5ab299ca77ec5e69facb807ede322f (diff) | |
download | vyos-cloud-init-cd8fbfffdf7ba9ba79d39ee7b4a223d1bd7863b4.tar.gz vyos-cloud-init-cd8fbfffdf7ba9ba79d39ee7b4a223d1bd7863b4.zip |
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.
Diffstat (limited to 'upstart')
0 files changed, 0 insertions, 0 deletions