Skip to content

Commit cb31e81

Browse files
committed
Fixing sagemath#41193 by -> making doctest sorting robust against dict insertion order
1 parent 5c8d9e9 commit cb31e81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/rings/polynomial/multi_polynomial_ideal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2617,7 +2617,7 @@ def variety(self, ring=None, *, algorithm='triangular_decomposition', proof=True
26172617
sage: I = Ideal([x^2 - 1, y^2 - 1]) # needs sage.rings.finite_rings
26182618
sage: sorted(I.variety(algorithm='msolve', # optional - msolve, needs sage.rings.finite_rings
26192619
....: proof=False),
2620-
....: key=str)
2620+
....: key=lambda d: str(sorted(d.items()))
26212621
[{y: 1, x: 1},
26222622
{y: 1, x: 536870908},
26232623
{y: 536870908, x: 1},

0 commit comments

Comments
 (0)