diff options
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r-- | tests/test_cmdline.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index d6a149ae..d2a9d702 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -175,3 +175,11 @@ class CmdLineTest(unittest.TestCase): c, e = run_cmdline_with_closed_stdout('-lpython', TESTFILE) self.assertEqual(c, 1) self.assertTrue('*** Error while highlighting:' in e) + + # same with -v: should reraise the exception + try: + run_cmdline_with_closed_stdout('-lpython', '-v', TESTFILE) + except Exception: + pass + else: + self.fail('exception not reraised') |