Форум сайта python.su
from __future__ import unicode_literals, print_function # anything?
def test():
"""
>>> 1+1
2
"""
pass
import doctest
doctest.testmod()
...>"c:\Program Files (x86)\IronPython 2.6\ipy.exe" test.py
**********************************************************************
File "test.py", line 5, in __main__.test
Failed example:
1+1
Exception raised:
Traceback (most recent call last):
File "c:\Program Files (x86)\IronPython 2.6\Lib\doctest.py", line 1240, in
_DocTestRunner__run
exec compile(example.source, filename, "single",
ValueError: unrecognized flags
**********************************************************************
1 items had failures:
1 of 1 in __main__.test
***Test Failed*** 1 failures.
Офлайн