From 1f6c87ca7b9351b2e5c5363504796fce0554c9b8 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sat, 31 Dec 2022 19:01:44 -0500 Subject: IDLE - fix module browser test (#100647) --- Lib/idlelib/idle_test/test_browser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/idlelib/idle_test/test_browser.py b/Lib/idlelib/idle_test/test_browser.py index 343d50a..6cfea38 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): -- cgit v0.12