[issue8392] unit tests rather light on testing __import__(..., level)

Virgil Dupras report at bugs.python.org
Fri Jul 23 13:13:39 CEST 2010


Virgil Dupras <hsoft at hardcoded.net> added the comment:

Because importlib is already well tested and that it already has the machinery to test __import__ instead of the importlib code, I suggest that we re-use importlib's relative tests instead.

Attached is a patch that does this. I made sure that __import__ was actually called.

----------
Added file: http://bugs.python.org/file18138/issue8392.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8392>
_______________________________________


More information about the Python-bugs-list mailing list