Skip to content

Commit

Permalink
#39300: correct doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoudert committed Jan 8, 2025
1 parent 6253a31 commit 37729d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/graphs/generic_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,11 +772,11 @@ def __mul__(self, n):
TESTS::

sage: Graph(1) * -1
Traceback (most recent call last)
Traceback (most recent call last):
...
TypeError: multiplication of a graph and a nonpositive integer is not defined
sage: Graph(1) * 2.5
Traceback (most recent call last)
Traceback (most recent call last):
...
TypeError: multiplication of a graph and something other than an integer is not defined
"""
Expand Down

0 comments on commit 37729d5

Please sign in to comment.