Skip to content

Commit 0d57f10

Browse files
IDLE - fix module browser test (GH-100647)
(cherry picked from commit 1f6c87c) Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent f7ad4ff commit 0d57f10

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/idlelib/idle_test/test_browser.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ def test_ondoubleclick(self, fopen):
170170

171171
with mock.patch('os.path.exists', return_value=True):
172172
mbt.OnDoubleClick()
173-
fopen.assert_called()
174-
fopen.called_with(fname)
173+
fopen.assert_called_once_with(fname)
175174

176175

177176
class ChildBrowserTreeItemTest(unittest.TestCase):

0 commit comments

Comments
 (0)