diff options
Diffstat (limited to 'Lib/test/test_doctest.txt')
-rw-r--r-- | Lib/test/test_doctest.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Lib/test/test_doctest.txt b/Lib/test/test_doctest.txt new file mode 100644 index 0000000..f8e851e --- /dev/null +++ b/Lib/test/test_doctest.txt @@ -0,0 +1,17 @@ +This is a sample doctest in a text file. + +In this example, we'll rely on a global variable being set for us +already: + + >>> favorite_color + 'blue' + +We can make this fail by disabling the blank-line feature. + + >>> if 1: + ... print 'a' + ... print + ... print 'b' + a + <BLANKLINE> + b |