Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
del sys.breakpointhook
1 parent d6259c5 commit ba7d4b9Copy full SHA for ba7d4b9
1 file changed
Lib/test/test_builtin.py
@@ -2072,6 +2072,11 @@ def test_envar_ignored_when_hook_is_set(self):
2072
breakpoint()
2073
mock.assert_not_called()
2074
2075
+ def test_runtime_error_when_hook_is_lost(self):
2076
+ del sys.breakpointhook
2077
+ with self.assertRaises(RuntimeError):
2078
+ breakpoint()
2079
+
2080
2081
@unittest.skipUnless(pty, "the pty and signal modules must be available")
2082
class PtyTests(unittest.TestCase):
0 commit comments