Python-project/build/exe.win32-3.7/lib/test/test_doctest.txt
2019-02-14 22:53:20 +01:00

18 lines
300 B
Plaintext

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