Skip to content

Commit 9c44659

Browse files
committed
trac 34595: fix internet doctests in findstat.py
1 parent 4541564 commit 9c44659

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sage/databases/findstat.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -4545,7 +4545,7 @@ def name(self, style="singular"):
45454545
_SupportedFindStatCollection(lambda x: (lambda E, V: Graph([list(range(V)),
45464546
lambda i,j: (i,j) in E or (j,i) in E],
45474547
immutable=True))(*literal_eval(x)),
4548-
lambda X: str((sorted(X.edges(labels=False)), X.num_verts())),
4548+
lambda X: str((X.edges(labels=False, sort=True), X.num_verts())),
45494549
lambda x: (g.copy(immutable=True) for g in graphs(x, copy=False)),
45504550
lambda x: x.num_verts(),
45514551
lambda x: isinstance(x, Graph)),
@@ -4767,13 +4767,13 @@ def _element_constructor_(self, entry):
47674767
47684768
sage: cc = FindStatCollection(graphs(3)); cc # optional -- internet
47694769
a subset of Cc0020: Graphs
4770-
sage: cc.first_terms(lambda x: x.edges(labels=False)).list() # optional -- internet
4770+
sage: cc.first_terms(lambda x: x.edges(labels=False, sort=True)).list() # optional -- internet
47714771
[(Graph on 3 vertices, []),
47724772
(Graph on 3 vertices, [(0, 2)]),
47734773
(Graph on 3 vertices, [(0, 2), (1, 2)]),
47744774
(Graph on 3 vertices, [(0, 1), (0, 2), (1, 2)])]
47754775
4776-
sage: len(cc.first_terms(lambda x: x.edges(labels=False)).list()) # optional -- internet
4776+
sage: len(cc.first_terms(lambda x: x.edges(labels=False, sort=False)).list()) # optional -- internet
47774777
4
47784778
"""
47794779
if isinstance(entry, self.Element):

0 commit comments

Comments
 (0)