cpython/Lib/test/test_doctest/test_doctest_errors.txt
Miss Islington (bot) 52bae918c3
[3.14] gh-108885: Imporove tests for doctest (GH-134832) (GH-134855)
Test the error and failure report in more detail.
(cherry picked from commit f6324bc7ee)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-05-28 17:41:07 +00:00

14 lines
190 B
Text

This is a sample doctest in a text file, in which all examples fail
or raise an exception.
>>> 2 + 2
5
>>> 1/0
1
>>> def f():
... 2 + '2'
...
>>> f()
1
>>> 2+*3
5