[issue17457] Unittest discover fails with namespace packages and builtin modules

Claudiu.Popa report at bugs.python.org
Mon Nov 18 23:48:19 CET 2013


Claudiu.Popa added the comment:

Eric, thank you for your comment! I modified the patch to check for __path__ instead, is this a safe enough check for this use case? Since ModuleSpec isn't landed yet, I didn't use your __spec__ example.

----------
Added file: http://bugs.python.org/file32697/unittest-17457-3.patch

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


More information about the Python-bugs-list mailing list