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
commit19397e5ec549e5281b33aa5795b517006c00f64d (patch)
tree65d1fe38b4fd47d537c45f505186666c7c7b45b2 /Lib/test/test_doctest2.txt
parent98bd1814e24434ca9961dddc71bf21db67211ab9 (diff)
downloadcpython-git-19397e5ec549e5281b33aa5795b517006c00f64d.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