summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2023-01-01 00:01:44 (GMT)
committerGitHub <noreply@github.com>2023-01-01 00:01:44 (GMT)
commit1f6c87ca7b9351b2e5c5363504796fce0554c9b8 (patch)
treed897643b43b95105731134d73b9852e508914bf4 /Lib/idlelib
parentbaf234971f20e5e6c7438f46889e9c8f172cc25e (diff)
downloadcpython-1f6c87ca7b9351b2e5c5363504796fce0554c9b8.zip
cpython-1f6c87ca7b9351b2e5c5363504796fce0554c9b8.tar.gz
cpython-1f6c87ca7b9351b2e5c5363504796fce0554c9b8.tar.bz2
IDLE - fix module browser test (#100647)
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/idle_test/test_browser.py3
1 files changed, 1 insertions, 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):