Demian Brecht added the comment:

@Julien.Palard: There's a subtle difference between your test and the issue as 
written. Your test lives within a module and therefore executes testmodule (see 
https://hg.python.org/cpython/file/9f60d024e586/Lib/doctest.py#l1819) whereas 
the issue reported uses testfile (see 
https://hg.python.org/cpython/file/9f60d024e586/Lib/doctest.py#l1923). I 
believe the issue is that the __future__ import doesn't make it into compile 
(https://hg.python.org/cpython/file/9f60d024e586/Lib/doctest.py#l1314). I've 
been able to confirm the issue on 2.7 and that it's been resolved in 3.5. 
Unfortunately, I haven't had time to dig into this any further.

----------

_______________________________________
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