Skip to content

Commit 9f0b2c3

Browse files
committed
Add a doctest for NotImplementedError
1 parent 90e4486 commit 9f0b2c3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/sage/rings/polynomial/polynomial_quotient_ring_element.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,12 @@ def __invert__(self):
411411
Traceback (most recent call last):
412412
...
413413
NotImplementedError
414+
sage: (2*y+1)^(-1) # this cannot raise ValueError because...
415+
Traceback (most recent call last):
416+
...
417+
NotImplementedError
418+
sage: (2*y+1) * (10*y+5) # the element is in fact invertible
419+
1
414420
415421
Check that :issue:`29469` is fixed::
416422

0 commit comments

Comments
 (0)