summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fileinput.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_fileinput.py')
-rw-r--r--Lib/test/test_fileinput.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_fileinput.py b/Lib/test/test_fileinput.py
index 10d3cfc..e4b477a 100644
--- a/Lib/test/test_fileinput.py
+++ b/Lib/test/test_fileinput.py
@@ -160,7 +160,7 @@ class FileInputTests(unittest.TestCase):
encoding = sys.getfilesystemencoding()
if encoding is None:
encoding = 'ascii'
- fi = FileInput(files=unicode(t1, encoding))
+ fi = FileInput(files=str(t1, encoding))
lines = list(fi)
self.assertEqual(lines, ["A\n", "B"])
finally: