Is the printed order important? If not, you can change the doctest to something else that is actually testing something relevant, maybe like
sage: 'B' in frozenset(....) True or sage: (define the frozenset S somehow) sage: S == frozenset(['A', 'B', 'C']) True Or if necessary, mark the test as "# random". On Tuesday, April 16, 2019 at 7:43:46 AM UTC-7, Daniel Krenn wrote: > > In Python2-SageMath we have > > sage: frozenset([frozenset(['A', 'B']), frozenset(['B', 'C'])]) > frozenset({frozenset({'B', 'C'}), frozenset({'A', 'B'})}) > > in all my trials, whereas in Python3 we get all possible permutations of > the elements at random. > > Even using > > sage: from IPython.lib.pretty import pretty > sage: pretty(frozenset([frozenset(['A', 'B']), frozenset(['B', 'C'])])) > > displays the set of sets with random order. How to deal with this? > > Background: This comes from a doctest in > sage.combinat.finite_state_machine, where this is a label of a state > after some minimization etc. > > Best, Daniel > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.