Terry J. Reedy <[email protected]> added the comment:
Definitely a typo. Will apply fix and backport. The first import of macosx initializes _tk_type to None. The line in question intends to re-initialize it so that the subsequent assert can only pass if _init_tk_type changes it to something required. Many other tests also set _tk_type as needed. _tk_type should be restored in tearDownModule. I will add that in a separate PR. (The class cleanup already restores platform.) ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue45059> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
