[reportlab-users] deterministic output?
Christoph Zwerschke
cito at online.de
Wed Oct 31 13:48:06 EDT 2018
Am 31.10.2018 um 18:09 schrieb Robin Becker:
> We have done quite a lot of work to make the output deterministic,
> but probably you need to test the effect of environment variable
> RL_invariant=1. However I think there has been a recent change to
> python 3.x to make dictionaries more random which might make things
> harder.
Actually, the dictionaries are now (since 3.6 and officially since 3.7)
ordered, so the results should be *more* deterministic.
Another option is to create a visual diff of the output e.g. using
ImageMagick. rst2pdf does this in its test suite
(https://github.com/rst2pdf/rst2pdf/tree/master/rst2pdf/tests).
-- Christoph
More information about the reportlab-users
mailing list