mirror of
https://github.com/python/cpython.git
synced 2025-08-23 02:04:56 +00:00
Remove meaning of -ttt, but still accept -t option on cmdline for compatibility.
This commit is contained in:
parent
e5d68aceb5
commit
f954c4b9fb
37 changed files with 1184 additions and 1024 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue