Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 5e65a5e

Browse files
author
Jonathan Kliem
committed
add doctest
1 parent 79983a9 commit 5e65a5e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/sage/geometry/polyhedron/backend_normaliz.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,12 @@ def __setstate__(self, state):
13421342
sage: P2 = Polyhedron_normaliz(P1.parent(), None, None, P1._normaliz_cone, normaliz_field=P1._normaliz_field) # optional - pynormaliz
13431343
sage: P == P2 # optional - pynormaliz
13441344
True
1345+
1346+
Test that :trac:`31820` is fixed::
1347+
1348+
sage: P = polytopes.cube(backend='normaliz') # optional - pynormaliz
1349+
sage: v = P.Vrepresentation()[0] # optional - pynormaliz
1350+
sage: v1 = loads(v.dumps()) # optional - pynormaliz
13451351
"""
13461352
if "_pickle_vertices" in state[1]:
13471353
vertices = state[1].pop("_pickle_vertices")

0 commit comments

Comments
 (0)