From f954c4b9fb8529cc13a2e24c58137c66ac836b28 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 4 Jun 2008 11:41:32 +0000 Subject: Remove meaning of -ttt, but still accept -t option on cmdline for compatibility. --- Lib/test/test_exceptions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Lib/test/test_exceptions.py') diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 619b7e3234..41b9413f41 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", '', 'exec') - #except TabError: pass - #else: self.fail("TabError not raised") + try: compile("try:\n\t1/0\n \t1/0\nfinally:\n pass\n", + '', 'exec') + except TabError: pass + else: self.fail("TabError not raised") self.raise_catch(SystemError, "SystemError") -- cgit v1.2.1