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 3218c31 commit 6fb4575Copy full SHA for 6fb4575
Lib/test/test_httpservers.py
@@ -321,12 +321,12 @@ def setUp(self):
321
"Python executable path is not encodable to utf-8")
322
323
self.file1_path = os.path.join(self.cgi_dir, 'file1.py')
324
- with open(self.file1_path, 'w') as file1:
+ with open(self.file1_path, 'w', encoding='utf-8') as file1:
325
file1.write(cgi_file1 % self.pythonexe)
326
os.chmod(self.file1_path, 0o777)
327
328
self.file2_path = os.path.join(self.cgi_dir, 'file2.py')
329
- with open(self.file2_path, 'w') as file2:
+ with open(self.file2_path, 'w', encoding='utf-8') as file2:
330
file2.write(cgi_file2 % self.pythonexe)
331
os.chmod(self.file2_path, 0o777)
332
0 commit comments