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

Commit ab4f49a

Browse files
author
Jonathan Kliem
committed
python2 doctests
1 parent 12ecb78 commit ab4f49a

File tree

1 file changed

+6
-1
lines changed
  • src/sage/geometry/polyhedron

1 file changed

+6
-1
lines changed

src/sage/geometry/polyhedron/base.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,16 @@ def __init__(self, parent, Vrep, Hrep, Vrep_minimal=None, Hrep_minimal=None, pre
156156
157157
If the backend supports precomputed data, ``pref_rep`` is ignored::
158158
159-
sage: p = Polyhedron_field(parent, Vrep, 'nonsense',
159+
sage: p = Polyhedron_field(parent, Vrep, 'nonsense', # py3
160160
....: Vrep_minimal=True, Hrep_minimal=True, pref_rep='Vrep')
161161
Traceback (most recent call last):
162162
...
163163
TypeError: _init_Hrepresentation() takes 3 positional arguments but 9 were given
164+
sage: p = Polyhedron_field(parent, Vrep, 'nonsense', # py2
165+
....: Vrep_minimal=True, Hrep_minimal=True, pref_rep='Vrep')
166+
Traceback (most recent call last):
167+
...
168+
TypeError: _init_Hrepresentation() takes exactly 3 arguments (9 given)
164169
"""
165170
Element.__init__(self, parent=parent)
166171
if Vrep is not None and Hrep is not None:

0 commit comments

Comments
 (0)