Gregory P. Smith added the comment: I refactored the unittests a bit and added another test for subimports when a directory within the .zip file is in sys.path as well.
The quizzical "wtf" TODO I had in the code has been "answered" in that I am unable to trigger a situation where path != buf and prefix is nonempty in that function. I'm leaving that as a NOTE in the code for future investigation, but it isnt' related to this bug. I cleaned up the code there regardless to refer to buf (guaranteed to be the path to the actual .zip file) rather than an odd mixture of path and buf. ---------- Added file: http://bugs.python.org/file33734/issue19081-subimport-fix-gps03.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19081> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com