]>
Commit | Line | Data |
---|---|---|
4710c53d | 1 | This is a sample doctest in a text file.\r |
2 | \r | |
3 | In this example, we'll rely on a global variable being set for us\r | |
4 | already:\r | |
5 | \r | |
6 | >>> favorite_color\r | |
7 | 'blue'\r | |
8 | \r | |
9 | We can make this fail by disabling the blank-line feature.\r | |
10 | \r | |
11 | >>> if 1:\r | |
12 | ... print 'a'\r | |
13 | ... print\r | |
14 | ... print 'b'\r | |
15 | a\r | |
16 | <BLANKLINE>\r | |
17 | b\r |