Eric Snow added the comment:

So the current solution is to temporarily put the relevant module in place in 
sys.modules, right?  That seems to be the solution that Stefan recommended and 
used in the decimal module.  Sounds good to me.

I'm hitting this while doing the PEP 399 two-step for the collections module.  
It seems like this will be a problem for testing any module that has had such 
attention and has __all__.  I'd be a fan of a class decorator that would take 
care of this and the rest of the PEP 399 stuff for you.

I've created issue #17037 to cover that (so it doesn't get muddled in with this 
discussion of test___all__).  There's even a proposed patch.

----------
nosy: +eric.snow

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16817>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to