]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
IDLE - fix module browser test (#100647)
authorTerry Jan Reedy <tjreedy@udel.edu>
Sun, 1 Jan 2023 00:01:44 +0000 (19:01 -0500)
committerGitHub <noreply@github.com>
Sun, 1 Jan 2023 00:01:44 +0000 (19:01 -0500)
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):