Julien Palard added the comment:

Works for me in 2.7.8:

$ python --version
Python 2.7.8
# cat /tmp/test.py
#!/usr/bin/env python

from __future__ import print_function


def toto():
    """
    >>> print (42, 43)
    42 43
    """
    return 42
$ python -m doctest -v /tmp/test.py 
Trying:
    print (42, 43)
Expecting:
    42 43
ok
1 items had no tests:
    test
1 items passed all tests:
   1 tests in test.toto
1 tests in 2 items.
1 passed and 0 failed.
Test passed.

----------
nosy: +Julien.Palard

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23043>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to