MCPcopy Create free account
hub / github.com/pytest-dev/pytest / MyDocTestRunner

Class MyDocTestRunner

testing/python/approx.py:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

mocked_doctest_runnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected