def METHOD_NAME(self):
    try:
        t1 = writeTmp(1, ["A\nB"])
        encoding = sys.getfilesystemencoding()
        if encoding is None:
            encoding = 'ascii'
        fi = FileInput(files=unicode(t1, encoding))
        lines = list(fi)
        self.assertEqual(lines, ["A\n", "B"])
    finally:
        remove_tempfiles(t1)