Skip to content

Commit a43c6be

Browse files
committed
Trac #22067 comment:123: NotImplemented error when more than one variable names are provided
1 parent e6f9513 commit a43c6be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/geometry/polyhedron/generating_function.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def generating_function_of_integral_points(polyhedron, split=False,
436436
....: sort_factors=True, names=('a', 'b'))
437437
Traceback (most recent call last):
438438
...
439-
ValueError: exactly one variable name has to be provided
439+
NotImplementedError: exactly one variable name has to be provided
440440
sage: generating_function_of_integral_points(P2[0],
441441
....: sort_factors=True, name='a', names=('a',))
442442
1 * (-a0 + 1)^-1 * (-a1 + 1)^-1 * (-a0*a2 + 1)^-1
@@ -494,7 +494,7 @@ def generating_function_of_integral_points(polyhedron, split=False,
494494
if names is not None:
495495
names = normalize_names(-1, names)
496496
if len(names) != 1:
497-
raise ValueError('exactly one variable name has to be provided')
497+
raise NotImplementedError('exactly one variable name has to be provided')
498498
if name is not None and name != names[0]:
499499
raise ValueError("keyword argument 'name' cannot be combined with 'names'")
500500
name = names[0]

0 commit comments

Comments
 (0)