Re: deterministic output?

Christoph Zwerschke <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.