(self)
| 2597 | mock.assert_not_called() |
| 2598 | |
| 2599 | def test_envar_ignored_when_hook_is_set(self): |
| 2600 | self.env['PYTHONBREAKPOINT'] = 'sys.exit' |
| 2601 | with patch('sys.exit') as mock: |
| 2602 | sys.breakpointhook = int |
| 2603 | breakpoint() |
| 2604 | mock.assert_not_called() |
| 2605 | |
| 2606 | def test_runtime_error_when_hook_is_lost(self): |
| 2607 | del sys.breakpointhook |
nothing calls this directly
no test coverage detected