X-Git-Url: https://git.sommitrealweird.co.uk/rss2maildir.git/blobdiff_plain/f47e451a2ae7cde0b422266b10b131d00d398e87..a53f1589ffaa52371e9eed15ff1a6ffd54997d89:/tests/unittests/ParsingTests.py?ds=sidebyside diff --git a/tests/unittests/ParsingTests.py b/tests/unittests/ParsingTests.py index 20fc521..fac5ad4 100755 --- a/tests/unittests/ParsingTests.py +++ b/tests/unittests/ParsingTests.py @@ -18,8 +18,8 @@ class ParsingTest(unittest.TestCase): except: self.assert_(False) input_path = os.path.sep.join(os.path.dirname(os.path.realpath(__file__)).split(os.path.sep)[0:-1]) - input = open(os.path.join(input_path, "html", filename + ".html")).read() - expectedoutput = open(os.path.join(input_path, "expected", filename + ".txt")).read() + input = unicode(open(os.path.join(input_path, "html", filename + ".html")).read(), 'utf-8') + expectedoutput = unicode(open(os.path.join(input_path, "expected", filename + ".txt")).read(), 'utf-8') parser = HTML2Text() parser.feed(input) output = parser.gettext()