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 demian.brecht
Recipients Julien.Palard, demian.brecht, fva
Date 2014-12-23.17:59:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1419357556.68.0.163023318175.issue23043@psf.upfronthosting.co.za>
In-reply-to
Content
@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.
History
Date User Action Args
2014-12-23 17:59:16demian.brechtsetrecipients: + demian.brecht, Julien.Palard, fva
2014-12-23 17:59:16demian.brechtsetmessageid: <1419357556.68.0.163023318175.issue23043@psf.upfronthosting.co.za>
2014-12-23 17:59:16demian.brechtlinkissue23043 messages
2014-12-23 17:59:16demian.brechtcreate