From f68866abc94a50ea8530cefd3490f67866555e4a Mon Sep 17 00:00:00 2001 From: xrotwang Date: Thu, 6 Nov 2014 14:29:05 +0100 Subject: [PATCH] fixed python2.6 incompatible usage of assertRaises as context manager. --- test/test_freeze_app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/test_freeze_app.py b/test/test_freeze_app.py index 97e99d4..907f829 100644 --- a/test/test_freeze_app.py +++ b/test/test_freeze_app.py @@ -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): """