[Python-checkins] IDLE - fix module browser test (GH-100647)

miss-islington webhook-mailer at python.org
Sat Dec 31 19:20:59 EST 2022


https://github.com/python/cpython/commit/0d57f10e40a4c4053169fe743882118e2bf3dee8
commit: 0d57f10e40a4c4053169fe743882118e2bf3dee8
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-12-31T16:20:53-08:00
summary:

IDLE - fix module browser test (GH-100647)

(cherry picked from commit 1f6c87ca7b9351b2e5c5363504796fce0554c9b8)

Co-authored-by: Terry Jan Reedy <tjreedy at udel.edu>

files:
M Lib/idlelib/idle_test/test_browser.py

diff --git a/Lib/idlelib/idle_test/test_browser.py b/Lib/idlelib/idle_test/test_browser.py
index 343d50a6e37b..6cfea3888cd6 100644
--- a/Lib/idlelib/idle_test/test_browser.py
+++ b/Lib/idlelib/idle_test/test_browser.py
@@ -170,8 +170,7 @@ def test_ondoubleclick(self, fopen):
 
         with mock.patch('os.path.exists', return_value=True):
             mbt.OnDoubleClick()
-            fopen.assert_called()
-            fopen.called_with(fname)
+            fopen.assert_called_once_with(fname)
 
 
 class ChildBrowserTreeItemTest(unittest.TestCase):



More information about the Python-checkins mailing list