@@ -279,21 +279,21 @@ def test_unicode_input(self):
279
279
self .assertTrue (isinstance (written , unicode_type ))
280
280
281
281
# Only use german umlauts in th next test, as iso-8859-15 covers that
282
- expected = u'üäö€ {0}' .format (os .linesep )
283
- bytes = u'<p>üäö€ </p>' .encode ("iso-8859-15" )
282
+ expected = u'äüäö {0}' .format (os .linesep )
283
+ bytes = u'<p>äüäö </p>' .encode ("iso-8859-15" )
284
284
285
285
# Without encoding, this fails as we expect utf-8 per default
286
286
287
287
def f ():
288
- pypandoc .convert_text (bytes , 'md' , format = 'html' )
288
+ written = pypandoc .convert_text (bytes , 'md' , format = 'html' )
289
289
290
- self . assertRaises ( RuntimeError , f )
290
+ assert expected != written
291
291
292
292
def f ():
293
293
# we have to use something which interprets '\xa4', so latin and -1 does not work :-/
294
- pypandoc .convert_text (bytes , 'md' , format = 'html' , encoding = "utf-16" )
294
+ written = pypandoc .convert_text (bytes , 'md' , format = 'html' , encoding = "utf-16" )
295
295
296
- self . assertRaises ( RuntimeError , f )
296
+ assert expected != written
297
297
# with the right encoding it should work...
298
298
written = pypandoc .convert_text (bytes , 'md' , format = 'html' , encoding = "iso-8859-15" )
299
299
self .assertEqualExceptForNewlineEnd (expected , written )
0 commit comments