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

miss-islington webhook-mailer at python.org
Tue Aug 31 13:53:52 EDT 2021


https://github.com/python/cpython/commit/c1db7598790d037e58cd99c06d5c166433d63322
commit: c1db7598790d037e58cd99c06d5c166433d63322
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-08-31T10:53:42-07:00
summary:

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

(cherry picked from commit 54f100514b02f6628450043e21ccfe39350d7ac7)

Co-authored-by: Serhiy Storchaka <storchaka at gmail.com>

files:
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 b6bd922e4b99d..1932477358689 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
                 macosx._init_tk_type()
                 self.assertIn(macosx._tk_type, types)
 



More information about the Python-checkins mailing list