From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 1 Jan 2023 00:31:53 +0000 (-0800) Subject: IDLE - fix module browser test (GH-100647) X-Git-Tag: v3.11.2~116 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83f85539a1559de285d2767c791235876ccda2d3;p=thirdparty%2FPython%2Fcpython.git IDLE - fix module browser test (GH-100647) (cherry picked from commit 1f6c87ca7b9351b2e5c5363504796fce0554c9b8) Co-authored-by: Terry Jan Reedy --- 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 @@ class ModuleBrowserTreeItemTest(unittest.TestCase): 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):