[New-bugs-announce] [issue45059] Typo: using "==" instead of "="
Serhiy Storchaka
report at bugs.python.org
Tue Aug 31 07:41:52 EDT 2021
New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:
While searching for use the equality operator with None I found the possible use of "==" instead of "=" (assignment) in Lib/idlelib/idle_test/test_macosx.py.
for platform, types in ('darwin', alltypes), ('other', nontypes):
with self.subTest(platform=platform):
macosx.platform = platform
macosx._tk_type == None
macosx._init_tk_type()
self.assertIn(macosx._tk_type, types)
----------
assignee: terry.reedy
components: IDLE, Tests
messages: 400713
nosy: serhiy.storchaka, taleinat, terry.reedy
priority: normal
severity: normal
status: open
title: Typo: using "==" instead of "="
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45059>
_______________________________________
More information about the New-bugs-announce
mailing list