[docs] [issue25768] compileall functions do not document or test return values
Brett Cannon
report at bugs.python.org
Fri Dec 11 20:59:32 EST 2015
Brett Cannon added the comment:
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).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25768>
_______________________________________
More information about the docs
mailing list