Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 55907f45bb9e0ec7bf19626cb2b307d211475a87 authored by Larry Hastings on 19 April 2015, 20:51:40 UTC
Version number bump for Python 3.5.0a4.
Tip revision: 55907f4
test_doctest.txt
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
back to top