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

Method test_doctests

testing/python/approx.py:737–745  ·  view source on GitHub ↗
(self, mocked_doctest_runner)

Source from the content-addressed store, hash-verified

735 assert approx(DeviceScalar(expected)) == DeviceScalar(actual)
736
737 def test_doctests(self, mocked_doctest_runner) -> None:
738 import doctest
739
740 parser = doctest.DocTestParser()
741 assert approx.__doc__ is not None
742 test = parser.get_doctest(
743 approx.__doc__, {"approx": approx}, approx.__name__, None, None
744 )
745 mocked_doctest_runner.run(test)
746
747 def test_unicode_plus_minus(self, pytester: Pytester) -> None:
748 """

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected