fixed python2.6 incompatible usage of assertRaises as context manager.
This commit is contained in:
parent
d58e3ec691
commit
f68866abc9
@ -42,8 +42,7 @@ class FreezeTestCase(TestCase):
|
|||||||
"""
|
"""
|
||||||
User passes no args, should fail with SystemExit
|
User passes no args, should fail with SystemExit
|
||||||
"""
|
"""
|
||||||
with self.assertRaises(SystemExit):
|
self.assertRaises(SystemExit, self.parser.parse_args, [])
|
||||||
self.parser.parse_args([])
|
|
||||||
|
|
||||||
def test_with_config(self):
|
def test_with_config(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user