Nick Coghlan added the comment: I added some unit tests for the interactions between runpy and namespace packages, which showed that I was doing the check for __main__ submodules and the check for "no loader" in the wrong order.
Last missing piece is to ensure that __spec__ is being populated appropriately, then I'll check this in. ---------- Added file: http://bugs.python.org/file33132/issue19700_runpy_spec_v2.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19700> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com