Hi Francois, On 7 Dez., 12:59, Francois Bissey <francois.bis...@canterbury.ac.nz> wrote: > The two affected files are > sage/combinat/words/nfactor_enumerable_word.py > where there the output of some tests appears to be > in random order. > and > sage/combinat/words/suffix_trees.py > where we sometimes have a different dictionary for > one of the result.
Not knowing the details: I think if a doctest can produce results that are randomly ordered, then one should test against the *ordered* output. Hence, not sage: SomeFancyFunction() { 'a': 1, 1: 'a'} but sage: sorted(SomeFancyFunction().items()) [(1, 'a'), ('a', 1)] and similarly for lists. That would of course not explain why the order is different on different machines, but it would make doc tests more stable. Best regards, Simon -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org