[docs] [issue12645] test.support. import_fresh_module - incorrect doc

Ben Finney report at bugs.python.org
Mon Jul 8 08:42:54 CEST 2013

Ben Finney added the comment:

> import_fresh_module raises an ImportError if *name* can't be imported, or returns None if the fresh module is not found.

The implementation doesn't seem to raise ImportError when a module import fails. Instead, from what I can tell, it captures any ImportError and returns None.

So should the documentation (user docs and docstring) reflect this? Or have I mis-read the implementation?


Python tracker <report at bugs.python.org>

More information about the docs mailing list