Home | History | Annotate | Download | only in test
      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
     18