We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9485351 commit 1788b80Copy full SHA for 1788b80
1 file changed
Lib/idlelib/idle_test/test_iomenu.py
@@ -70,7 +70,8 @@ def test_reload_no_file(self):
70
args, kwargs = mock_showinfo.call_args
71
self.assertIn("File Not Found", args[0])
72
73
- def test_reload_with_file(self):
+ @patch('idlelib.iomenu.messagebox.showerror')
74
+ def test_reload_with_file(self, mock_showerror):
75
# Test reload with an actual file
76
io = self.io
77
text = io.editwin.text
@@ -90,6 +91,7 @@ def test_reload_with_file(self):
90
91
self.assertEqual(text.get('1.0', 'end-1c'), original_content)
92
result = io.reload(None)
93
94
+ mock_showerror.assert_not_called()
95
self.assertEqual(result, "break")
96
self.assertEqual(text.get('1.0', 'end-1c'), modified_content)
97
0 commit comments