Skip to content

Commit eba5e19

Browse files
committed
Fix test failure on 32-bit where a different element is picked
1 parent e5f42fa commit eba5e19

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sage/geometry/polyhedral_complex.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -932,8 +932,11 @@ def _an_element_(self):
932932
sage: pc = PolyhedralComplex([
933933
....: Polyhedron(vertices=[(1/3, 1/3), (0, 0), (1, 2)]),
934934
....: Polyhedron(vertices=[(1, 2), (0, 0), (0, 1/2)])])
935-
sage: pc._an_element_().vertices_list()
935+
sage: element = pc._an_element_().vertices_list()
936+
sage: element # random output (one of the two maximal cells)
936937
[[0, 0], [0, 1/2], [1, 2]]
938+
sage: element in ([[0, 0], [0, 1/2], [1, 2]], [[0, 0], [1/3, 1/3], [1, 2]])
939+
True
937940
"""
938941
try:
939942
return next(self.maximal_cell_iterator(increasing=False))

0 commit comments

Comments
 (0)