[Python-checkins] bpo-45059: Fix IDLE test typo: using "==" instead of "=" (GH-28086)

terryjreedy webhook-mailer at python.org
Tue Aug 31 13:32:10 EDT 2021

commit: 54f100514b02f6628450043e21ccfe39350d7ac7
branch: main
author: Serhiy Storchaka <storchaka at gmail.com>
committer: terryjreedy <tjreedy at udel.edu>
date: 2021-08-31T13:32:01-04:00

bpo-45059: Fix IDLE test typo: using "==" instead of "=" (GH-28086)

M Lib/idlelib/idle_test/test_macosx.py

diff --git a/Lib/idlelib/idle_test/test_macosx.py b/Lib/idlelib/idle_test/test_macosx.py
index b6bd922e4b99dd..19324773586896 100644
--- a/Lib/idlelib/idle_test/test_macosx.py
+++ b/Lib/idlelib/idle_test/test_macosx.py
@@ -34,7 +34,7 @@ def test_init_sets_tktype(self):
         for platform, types in ('darwin', alltypes), ('other', nontypes):
             with self.subTest(platform=platform):
                 macosx.platform = platform
-                macosx._tk_type == None
+                macosx._tk_type = None
                 self.assertIn(macosx._tk_type, types)

More information about the Python-checkins mailing list