Commit f9b379c2 authored by Julien Cristau's avatar Julien Cristau
Browse files

[test] fix failure on python3

binary files shouldn't be opened in text mode
parent a5f67ac307a3
......@@ -96,7 +96,7 @@ r2MAoIO1DSsuM23SzgmqubGJEZuSRWhR
self.skipTest('pdflatex not installed')
else:
raise
data = TransformData(open(osp.join(DATAPATH, 'hello.pdf')).read(),
data = TransformData(open(osp.join(DATAPATH, 'hello.pdf'), 'rb').read(),
'application/pdf', 'utf8')
converted = ENGINE.convert(data, 'text/plain').decode().strip()
self.assertEqual(converted, u'hello')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment