(patching)
| 6 | |
| 7 | |
| 8 | def test_on_blocking(patching): |
| 9 | getframeinfo = patching('inspect.getframeinfo') |
| 10 | frame = Mock(name='frame') |
| 11 | with pytest.raises(RuntimeError): |
| 12 | debug._on_blocking(1, frame) |
| 13 | getframeinfo.assert_called_with(frame) |
| 14 | |
| 15 | |
| 16 | def test_blockdetection(patching): |