[issue45059] Typo: using "==" instead of "="

Terry J. Reedy report at bugs.python.org
Tue Aug 31 13:41:30 EDT 2021


Terry J. Reedy <tjreedy at udel.edu> 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 <report at bugs.python.org>
<https://bugs.python.org/issue45059>
_______________________________________


More information about the Python-bugs-list mailing list