PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/unit_tests/support/doctest/err_doctests.py

https://bitbucket.org/jpellerin/nose/
Python | 12 lines | 8 code | 0 blank | 4 comment | 0 complexity | 1d85e90e72d4854adb4b7a3a80b6f14e MD5 | raw file
 1"""
 2Module with errors in doctest formatting.
 3
 4    >>> 1
 5    'this is\n an error'
 6"""
 7def foo():
 8    pass
 9
10if __name__ == '__main__':
11    import doctest
12    doctest.testmod()