diff options
Diffstat (limited to 'Lib/test/test_fileinput.py')
-rw-r--r-- | Lib/test/test_fileinput.py | 2 |
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: |