mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Remove the exceptions builtin module, all the exceptions are already builtin.
This commit is contained in:
parent
f543348fff
commit
2633c69fae
15 changed files with 34 additions and 66 deletions
|
@ -1691,7 +1691,7 @@ Our ill-behaved code should be invoked during GC:
|
|||
>>> g.next()
|
||||
>>> del g
|
||||
>>> sys.stderr.getvalue().startswith(
|
||||
... "Exception exceptions.RuntimeError: 'generator ignored GeneratorExit' in "
|
||||
... "Exception RuntimeError: 'generator ignored GeneratorExit' in "
|
||||
... )
|
||||
True
|
||||
>>> sys.stderr = old
|
||||
|
@ -1808,7 +1808,7 @@ to test.
|
|||
... del l
|
||||
... err = sys.stderr.getvalue().strip()
|
||||
... err.startswith(
|
||||
... "Exception exceptions.RuntimeError: RuntimeError() in <"
|
||||
... "Exception RuntimeError: RuntimeError() in <"
|
||||
... )
|
||||
... err.endswith("> ignored")
|
||||
... len(err.splitlines())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue