pmaupin / pdfrw

pdfrw is a pure Python library that reads and writes PDFs
Other
1.86k stars 271 forks source link

TestOnePdf.test_repaginate_7037a992b80b60f0294016037baa9292.pdf fails on py3.6+ #198

Open mgorny opened 4 years ago

mgorny commented 4 years ago

In addition to #197, the following test fails with py3.6+ (I don't have an older version to test). It passes when using py2.7.

_________________________________________ TestOnePdf.test_repaginate_7037a992b80b60f0294016037baa9292.pdf _________________________________________

self = <tests.test_roundtrip.TestOnePdf testMethod=test_repaginate_7037a992b80b60f0294016037baa9292.pdf>

    def test(self):
>       self.roundtrip(*args, **kw)

../../test_roundtrip.py:110: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../test_roundtrip.py:94: in roundtrip
    self.assertEqual(hash, expects)
E   AssertionError: '4df027cb2f2d2b13efa04071fa5def07' != 'dd41b0104f185206b51e7ffe5b07d261'
E   - 4df027cb2f2d2b13efa04071fa5def07
E   + dd41b0104f185206b51e7ffe5b07d261