mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +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 @@ def test_envar_ignored_when_hook_is_set(self):
|
||||||
breakpoint()
|
breakpoint()
|
||||||
mock.assert_not_called()
|
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")
|
@unittest.skipUnless(pty, "the pty and signal modules must be available")
|
||||||
class PtyTests(unittest.TestCase):
|
class PtyTests(unittest.TestCase):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue