]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
IDLE - fix module browser test (GH-100647)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 1 Jan 2023 00:31:53 +0000 (16:31 -0800)
committerGitHub <noreply@github.com>
Sun, 1 Jan 2023 00:31:53 +0000 (16:31 -0800)
(cherry picked from commit 1f6c87ca7b9351b2e5c5363504796fce0554c9b8)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/idlelib/idle_test/test_browser.py

index 343d50a6e37bd6560e1ae9b1cfb393d633255871..6cfea3888cd6a9064be1b9b5f5c13febdc701b96 100644 (file)
@@ -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):