fixed python2.6 incompatible usage of assertRaises as context manager.

This commit is contained in:
xrotwang 2014-11-06 14:29:05 +01:00
parent d58e3ec691
commit f68866abc9

View File

@ -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):
"""