mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-96197: Add del sys.breakpointhook
behavior test (gh-96198)
This commit is contained in:
parent
d6259c58cb
commit
ba7d4b9dc1
1 changed files with 5 additions and 0 deletions
|
@ -2072,6 +2072,11 @@ class TestBreakpoint(unittest.TestCase):
|
|||
breakpoint()
|
||||
mock.assert_not_called()
|
||||
|
||||
def test_runtime_error_when_hook_is_lost(self):
|
||||
del sys.breakpointhook
|
||||
with self.assertRaises(RuntimeError):
|
||||
breakpoint()
|
||||
|
||||
|
||||
@unittest.skipUnless(pty, "the pty and signal modules must be available")
|
||||
class PtyTests(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue