Terry J. Reedy <tjre...@udel.edu> added the comment:
Because of import caching, subsequent pyshell imports, after the first, do not re-call the Windows API. Apparently, 'root.destroy()' undoes a previous 'root = Tk()', but not a previous pyshell import. Since IDLE unittests always destroy roots, a unittest before an htest does not require anything more to work right. Since part of the purpose of human-viewed tests is to determine that widgets look right, it is important that they look the same for testing as when running IDLE. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33975> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com