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 brett.cannon
Recipients brett.cannon, docs@python, nchammas
Date 2015-12-12.01:59:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449885572.62.0.916992210498.issue25768@psf.upfronthosting.co.za>
In-reply-to
Content
Do the tests take much longer with all of the added stuff in setUp()/tearDown()? It's just that all of it has to run for all tests. You could make a mixin or put all of it in a method that you selectively call and which registers the proper cleanup method.

As for skip_curdir, if you look at https://hg.python.org/cpython/file/default/Lib/compileall.py#l188 you will notice it requires the current directory to be on sys.path and I don't see you make any such change to sys.path (and if you do you can use test_importlib.util.import_state to temporarily mutate sys.path (https://hg.python.org/cpython/file/default/Lib/test/test_importlib/util.py#l165).
History
Date User Action Args
2015-12-12 01:59:32brett.cannonsetrecipients: + brett.cannon, docs@python, nchammas
2015-12-12 01:59:32brett.cannonsetmessageid: <1449885572.62.0.916992210498.issue25768@psf.upfronthosting.co.za>
2015-12-12 01:59:32brett.cannonlinkissue25768 messages
2015-12-12 01:59:31brett.cannoncreate