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

Method test_doctestmodule

testing/test_doctest.py:441–453  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

439 )
440
441 def test_doctestmodule(self, pytester: Pytester):
442 p = pytester.makepyfile(
443 """
444 '''
445 >>> x = 1
446 >>> x == 1
447 False
448
449 '''
450 """
451 )
452 reprec = pytester.inline_run(p, "--doctest-modules")
453 reprec.assertoutcome(failed=1)
454
455 def test_doctestmodule_external_and_issue116(self, pytester: Pytester):
456 p = pytester.mkpydir("hello")

Callers

nothing calls this directly

Calls 3

assertoutcomeMethod · 0.80
makepyfileMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected