blob: 23446d1d224532578e7dbfbd284e6d0e496649ce [file] [log] [blame]
Tim Peters19397e52004-08-06 22:02:59 +00001This is a sample doctest in a text file.
2
3In this example, we'll rely on a global variable being set for us
4already:
5
6 >>> favorite_color
7 'blue'
8
9We can make this fail by disabling the blank-line feature.
10
11 >>> if 1:
Guido van Rossum79139b22007-02-09 23:20:19 +000012 ... print('a')
13 ... print()
14 ... print('b')
Tim Peters19397e52004-08-06 22:02:59 +000015 a
16 <BLANKLINE>
17 b