| 34 | monkeypatch.setattr("doctest._OutputRedirectingPdb", MockedPdb) |
| 35 | |
| 36 | class MyDocTestRunner(doctest.DocTestRunner): |
| 37 | def report_failure(self, out, test, example, got): |
| 38 | raise AssertionError( |
| 39 | "'{}' evaluates to '{}', not '{}'".format( |
| 40 | example.source.strip(), got.strip(), example.want.strip() |
| 41 | ) |
| 42 | ) |
| 43 | |
| 44 | return MyDocTestRunner() |
| 45 |
no outgoing calls
no test coverage detected