Nick Coghlan <ncogh...@gmail.com> added the comment:
Given that importlib is essentially just doing "listdir", it would be interesting to know how the following behaves in a tight loop on affected systems: # Write a file f = open(os.path.join(dirname, "testname.py"), "w") f.write("text\n") f.close() # Make a directory os.mkdir(os.path.join(dirname, "testname")) # List the directory os.listdir(dirname) The core assumption that test_pkg is indirectly making is that the directory listing in importlib will always list both entries created by the test suite without any special care being needed at the application level. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34200> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com