diff options
author | Georg Brandl <georg@python.org> | 2008-06-04 13:06:58 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-06-04 13:06:58 (GMT) |
commit | e1b5ac640841e4233bcd0204efcd50fe9b50a6d0 (patch) | |
tree | e0baea9c87f7ceee0cba306689bca1f0607b241d /Lib/test/test_exceptions.py | |
parent | a26f8ca668d09eff8ab03ef3d1cddb9bfbc6d124 (diff) | |
download | cpython-e1b5ac640841e4233bcd0204efcd50fe9b50a6d0.zip cpython-e1b5ac640841e4233bcd0204efcd50fe9b50a6d0.tar.gz cpython-e1b5ac640841e4233bcd0204efcd50fe9b50a6d0.tar.bz2 |
Remove meaning of -ttt, but still accept -t option on cmdline for compatibility.
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 619b7e3..41b9413 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -80,10 +80,10 @@ class ExceptionTests(unittest.TestCase): self.raise_catch(IndentationError, "IndentationError") self.raise_catch(TabError, "TabError") - # can only be tested under -tt, and is the only test for -tt - #try: compile("try:\n\t1/0\n \t1/0\nfinally:\n pass\n", '<string>', 'exec') - #except TabError: pass - #else: self.fail("TabError not raised") + try: compile("try:\n\t1/0\n \t1/0\nfinally:\n pass\n", + '<string>', 'exec') + except TabError: pass + else: self.fail("TabError not raised") self.raise_catch(SystemError, "SystemError") |