pdfrw
pdfrw copied to clipboard
test_rl1_platypus fails
The following test fails for me on all Python versions I've tried. I suspect reportlab version may be relevant (I've tested 3.5.13 and 3.5.42).
==================================================================== FAILURES =====================================================================
__________________________________________________________ TestOnePdf.test_rl1_platypus ___________________________________________________________
self = <tests.test_examples.TestOnePdf testMethod=test_rl1_platypus>
def test_rl1_platypus(self):
if sys.version_info < (2, 7):
return
self.do_test('rl1/platypus_pdf_template b1c400de699af29ea3f1983bb26870ab',
> scrub=True)
../../../test_examples.py:189:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../test_examples.py:112: in do_test
self.assertEqual(hash, expects)
E AssertionError: 'bb2449c75d96ff7913d59af89f0fd8b7' != '88bd087c4dc039ced05faea3920cbec5'
================================================ 1 failed, 202 passed, 28 skipped in 80.88 seconds ================================================
Hmm, it seems that Python 3.6 gives some more info:
==================================================================== FAILURES =====================================================================
__________________________________________________________ TestOnePdf.test_rl1_platypus ___________________________________________________________
self = <tests.test_examples.TestOnePdf testMethod=test_rl1_platypus>
def test_rl1_platypus(self):
if sys.version_info < (2, 7):
return
self.do_test('rl1/platypus_pdf_template b1c400de699af29ea3f1983bb26870ab',
> scrub=True)
../../../test_examples.py:189:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../test_examples.py:112: in do_test
self.assertEqual(hash, expects)
E AssertionError: 'bb2449c75d96ff7913d59af89f0fd8b7' != '88bd087c4dc039ced05faea3920cbec5'
E - bb2449c75d96ff7913d59af89f0fd8b7
E + 88bd087c4dc039ced05faea3920cbec5
-------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------
[ERROR] tokens.py:226 Expected PDF /name object (line=2034, col=18, token='the')
[ERROR] tokens.py:226 Expected PDF /name object (line=2034, col=22, token='type')
[ERROR] tokens.py:226 Expected PDF /name object (line=2034, col=27, token='of')
[ERROR] tokens.py:226 Expected PDF /name object (line=2034, col=30, token='variable')
[ERROR] tokens.py:226 Expected PDF /name object (line=2034, col=39, token='from')
[ERROR] tokens.py:226 Expected PDF /name object (line=2034, col=44, token='its')
[ERROR] tokens.py:226 Expected PDF /name object (line=2034, col=48, token='initializer')
[ERROR] tokens.py:226 Expected PDF /name object (line=2034, col=60, token='expression')
[ERROR] tokens.py:226 Expected PDF /name object (line=2034, col=71, token='(revision 4)')
[ERROR] tokens.py:226 Expected PDF /name object (line=2034, col=99, token='Järvi,')
[ERROR] tokens.py:226 Expected PDF /name object (line=2034, col=106, token='Bjarne')
[ERROR] tokens.py:226 Expected PDF /name object (line=2034, col=113, token='Stroustrup,')
[ERROR] tokens.py:226 Expected PDF /name object (line=2034, col=125, token='and')
[ERROR] tokens.py:226 Expected PDF /name object (line=2034, col=129, token='Gabriel')
[ERROR] tokens.py:226 Expected PDF /name object (line=2034, col=137, token='Dos')
[ERROR] tokens.py:226 Expected PDF /name object (line=2034, col=141, token='Reis')