[Python-checkins] IDLE - fix module browser test (#100647)
terryjreedy
webhook-mailer at python.org
Sat Dec 31 19:01:49 EST 2022
https://github.com/python/cpython/commit/1f6c87ca7b9351b2e5c5363504796fce0554c9b8
commit: 1f6c87ca7b9351b2e5c5363504796fce0554c9b8
branch: main
author: Terry Jan Reedy <tjreedy at udel.edu>
committer: terryjreedy <tjreedy at udel.edu>
date: 2022-12-31T19:01:44-05:00
summary:
IDLE - fix module browser test (#100647)
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