summaryrefslogtreecommitdiff
path: root/Lib/test/test_file_eintr.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_file_eintr.py')
-rw-r--r--Lib/test/test_file_eintr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_file_eintr.py b/Lib/test/test_file_eintr.py
index f1efd266ff..01408d838a 100644
--- a/Lib/test/test_file_eintr.py
+++ b/Lib/test/test_file_eintr.py
@@ -213,7 +213,7 @@ class TestTextIOSignalInterrupt(TestFileIOSignalInterrupt):
def _generate_infile_setup_code(self):
"""Returns the infile = ... line of code to make a TextIOWrapper."""
return ('import %s as io ;'
- 'infile = io.open(sys.stdin.fileno(), "rt", newline=None) ;'
+ 'infile = io.open(sys.stdin.fileno(), encoding="utf-8", newline=None) ;'
'assert isinstance(infile, io.TextIOWrapper)' %
self.modname)