repo.or.cz
/
python
/
dscho.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
move sections
[python/dscho.git]
/
Lib
/
test
/
test_doctest.txt
blob
f8e851e1a5f5a57fce008eaf07b85daedee00324
1
This is a sample doctest in a text file.
2
3
In this example, we'll rely on a global variable being set for us
4
already:
5
6
>>> favorite_color
7
'blue'
8
9
We can make this fail by disabling the blank-line feature.
10
11
>>> if 1:
12
... print 'a'
13
... print
14
... print 'b'
15
a
16
<BLANKLINE>
17
b