]> git.sommitrealweird.co.uk Git - rss2maildir.git/blobdiff - tests/unittests/ParsingTests.py
Update changelog
[rss2maildir.git] / tests / unittests / ParsingTests.py
index 20fc521370b8285e0b30e5aba237db403bd47742..fac5ad4d7349a672ffd265b2eb5c2c949b0a1883 100755 (executable)
@@ -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])
             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()
         parser = HTML2Text()
         parser.feed(input)
         output = parser.gettext()