We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39e6187 commit 9dacd3dCopy full SHA for 9dacd3d
Lib/idlelib/idle_test/test_iomenu.py
@@ -2,6 +2,7 @@
2
3
from idlelib import iomenu
4
import unittest
5
+import builtins
6
from test.support import requires
7
from tkinter import Tk
8
from idlelib.editor import EditorWindow
@@ -101,7 +102,7 @@ def test_reload_with_file(self):
101
102
self.assertEqual(text.get('1.0', 'end-1c'), "# Original content\n")
103
104
# Modify the file content externally
- with open(temp_filename, 'w') as f:
105
+ with builtins.open(temp_filename, 'w') as f:
106
f.write("# Modified content\n")
107
108
# Reload should update the content
0 commit comments