summaryrefslogtreecommitdiff
path: root/tests/test_cmdline.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-11-10 20:10:45 +0100
committerGeorg Brandl <georg@python.org>2014-11-10 20:10:45 +0100
commite460ebf07d887385aed294fee486f67b9718a7d1 (patch)
tree40f5fa819e52a14d984cc21529deffb67ef09c3b /tests/test_cmdline.py
parent1b0b3bd0c52d997f707201fbaf973b9f49c5dcb8 (diff)
parent7069245134db629eddcfb3f00f21f8ea7f9c2d97 (diff)
downloadpygments-e460ebf07d887385aed294fee486f67b9718a7d1.tar.gz
merge with stable
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r--tests/test_cmdline.py8
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')