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