aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_doctest/test_doctest_errors.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_doctest/test_doctest_errors.txt')
-rw-r--r--Lib/test/test_doctest/test_doctest_errors.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Lib/test/test_doctest/test_doctest_errors.txt b/Lib/test/test_doctest/test_doctest_errors.txt
new file mode 100644
index 00000000000..93c3c106e60
--- /dev/null
+++ b/Lib/test/test_doctest/test_doctest_errors.txt
@@ -0,0 +1,14 @@
+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