-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
del sys.breakpointhook
is not tested in test_builtin
#96197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The semantics of Python 3.10.6 (main, Aug 11 2022, 13:49:25) [Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> del sys.displayhook
>>> repr(object())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: lost sys.displayhook
>>> del sys.excepthook
>>> 1/0
sys.excepthook is missing
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ZeroDivisionError: division by zero
All that to say, I wonder if these behaviors should be documented in |
Agree |
Thank you, that sounds great to me. |
…ok is lost (pythongh-96231) (cherry picked from commit 09563a7) Co-authored-by: Dong-hee Na <[email protected]>
…ok is lost (pythongh-96231) (cherry picked from commit 09563a7) Co-authored-by: Dong-hee Na <[email protected]>
…lost (gh-96231) (cherry picked from commit 09563a7) Co-authored-by: Dong-hee Na <[email protected]>
…lost (gh-96231) (cherry picked from commit 09563a7) Co-authored-by: Dong-hee Na <[email protected]>
…ing (pythongh-96293) (cherry picked from commit 47d406f) Co-authored-by: Dong-hee Na <[email protected]>
…ing (pythongh-96293) (cherry picked from commit 47d406f) Co-authored-by: Dong-hee Na <[email protected]>
pythongh-96242) (cherry picked from commit 0319cd6) Co-authored-by: Dong-hee Na <[email protected]>
pythongh-96242) (cherry picked from commit 0319cd6) Co-authored-by: Dong-hee Na <[email protected]>
…h-96293) (cherry picked from commit 47d406f) Co-authored-by: Dong-hee Na <[email protected]>
…96242) (cherry picked from commit 0319cd6) Co-authored-by: Dong-hee Na <[email protected]>
…96242) (cherry picked from commit 0319cd6) Co-authored-by: Dong-hee Na <[email protected]>
…sing (gh-96293) (#96294) (cherry picked from commit 47d406f) Co-authored-by: Dong-hee Na <[email protected]>
…sing (gh-96293) (#96294) (cherry picked from commit 47d406f) Co-authored-by: Dong-hee Na <[email protected]>
Bug report
test_builtin::TestBreakpoint
contains various scenario of breakpointhook setup, but missing deleted hook test.Adding a new test will prevent a future regression.
Your environment
Not applicable.
The text was updated successfully, but these errors were encountered: