Message89807
(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) |
|
Date |
User |
Action |
Args |
2009-06-29 02:27:30 | pooryorick | set | recipients:
+ pooryorick |
2009-06-29 02:27:30 | pooryorick | set | messageid: <1246242450.27.0.0341374672588.issue6363@psf.upfronthosting.co.za> |
2009-06-29 02:27:28 | pooryorick | link | issue6363 messages |
2009-06-29 02:27:27 | pooryorick | create | |
|