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 SilentGhost
Recipients Arfrever, SilentGhost, ezio.melotti, vstinner
Date 2015-11-22.10:52:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448189530.08.0.180641961681.issue25695@psf.upfronthosting.co.za>
In-reply-to
Content
test_support has this line:

TESTDIRN = os.path.basename(tempfile.mkdtemp(dir='.'))

Which is the culprit. The reason it gets so far as to import the module is due to the "fuzzy logic" check looking for __all__ 
What I'd suggest is replacing simple "in" string search with re.search for '\b__all__\b'. The downside of this is that the test execution time increased from .4 s to .7 s on my machine.
History
Date User Action Args
2015-11-22 10:52:10SilentGhostsetrecipients: + SilentGhost, vstinner, ezio.melotti, Arfrever
2015-11-22 10:52:10SilentGhostsetmessageid: <1448189530.08.0.180641961681.issue25695@psf.upfronthosting.co.za>
2015-11-22 10:52:09SilentGhostlinkissue25695 messages
2015-11-22 10:52:09SilentGhostcreate