Staging
v0.8.1
v0.8.1
Revision e3357548cad69a9efa6a045356c8f93c270626d6 authored by Anthony Baxter on 29 March 2005, 12:35:54 UTC, committed by Anthony Baxter on 29 March 2005, 12:35:54 UTC
SF patch 1167316: doctest.py fails self-test if run directly.
1 parent 92da66a
test_doctest.txt
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
Computing file changes ...