summaryrefslogtreecommitdiff
path: root/Lib/test/test_doctest2.txt
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-08-06 22:02:59 +0000
committerTim Peters <tim.peters@gmail.com>2004-08-06 22:02:59 +0000
commitad66e6e37d0e511ec11883d8e33b0be761b614d0 (patch)
tree61d5f9c90c3f5aa0dda316418da75f7d2acd39e5 /Lib/test/test_doctest2.txt
parent980cd1c70d6fb0c8a8733b2de467b854d67e260b (diff)
downloadcpython-ad66e6e37d0e511ec11883d8e33b0be761b614d0.tar.gz
Merging from tim-doctest-branch, which is now closed.
This primarily adds more powerful ways to work with unittest, including spiffy support for building suites out of doctests in non-Python "text files".
Diffstat (limited to 'Lib/test/test_doctest2.txt')
-rw-r--r--Lib/test/test_doctest2.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_doctest2.txt b/Lib/test/test_doctest2.txt
new file mode 100644
index 0000000000..0d7d1d59c1
--- /dev/null
+++ b/Lib/test/test_doctest2.txt
@@ -0,0 +1,7 @@
+This is a sample doctest in a text file.
+
+In this example, we'll rely on some silly setup:
+
+ >>> import test.test_doctest
+ >>> test.test_doctest.sillySetup
+ True