https://github.com/python/cpython/commit/83f85539a1559de285d2767c791235876ccda2d3 commit: 83f85539a1559de285d2767c791235876ccda2d3 branch: 3.11 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月31日T16:31: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):