diff options
Diffstat (limited to 'tests/01_test_help.py')
-rw-r--r-- | tests/01_test_help.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/01_test_help.py b/tests/01_test_help.py index c4cc34ea..ed085ba7 100644 --- a/tests/01_test_help.py +++ b/tests/01_test_help.py @@ -29,8 +29,7 @@ class TestHelp(TestCaseWithData): def testHelp(self, script): module = 'gbp.scripts.%s' % script m = __import__(module, globals(), locals(), ['main'], 0) - self.assertRaises(SystemExit, - m.main, - ['doesnotmatter', '--help']) + with self.assertRaises(SystemExit): + m.main(['doesnotmatter', '--help']) # vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: |