This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pooryorick
Recipients pooryorick
Date 2009-06-29.02:27:27
SpamBayes Score 8.629794e-06
Marked as misclassified No
Message-id <1246242450.27.0.0341374672588.issue6363@psf.upfronthosting.co.za>
In-reply-to
Content
(this error also occurs with "print_function")

Python 3.1 (r31:73574, Jun 26 2009, 20:21:35) [MSC v.1500 32 bit
(Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> from __future__ import unicode_literals
>>> import doctest
>>> def func1():
...    '''
...    >>> func1()
...    hello
...    '''
...    print('hello')
...
>>> doctest.testmod()
**********************************************************************
File "__main__", line 3, in __main__.func1
Failed example:
    func1()
Exception raised:
    Traceback (most recent call last):
      File "c:\Python31\lib\doctest.py", line 1242, in __run
        compileflags, 1), test.globs)
    ValueError: compile(): unrecognised flags
**********************************************************************
1 items had failures:
   1 of   1 in __main__.func1
***Test Failed*** 1 failures.
TestResults(failed=1, attempted=1)
History
Date User Action Args
2009-06-29 02:27:30pooryoricksetrecipients: + pooryorick
2009-06-29 02:27:30pooryoricksetmessageid: <1246242450.27.0.0341374672588.issue6363@psf.upfronthosting.co.za>
2009-06-29 02:27:28pooryoricklinkissue6363 messages
2009-06-29 02:27:27pooryorickcreate