Skip to content

Commit 457a121

Browse files
committed
remove one doctest, fix the other
1 parent 04a860b commit 457a121

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/doc/en/reference/coercion/index.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,6 @@ That's all there is to it. Now we can test it out:
507507
sage: R(3/4) * 7
508508
LocalElt(21/4)
509509

510-
sage: R.get_action(ZZ)
511-
Right scalar multiplication by Integer Ring on Integer Ring localized at [2]
512510
sage: cm = sage.structure.element.get_coercion_model()
513511
sage: cm.explain(R, ZZ, operator.add)
514512
Coercion on right operand via
@@ -520,8 +518,11 @@ That's all there is to it. Now we can test it out:
520518
Integer Ring localized at [2]
521519

522520
sage: cm.explain(R, ZZ, operator.mul)
523-
Action discovered.
524-
Right scalar multiplication by Integer Ring on Integer Ring localized at [2]
521+
Coercion on right operand via
522+
Coercion map:
523+
From: Integer Ring
524+
To: Integer Ring localized at [2]
525+
Arithmetic performed after coercions.
525526
Result lives in Integer Ring localized at [2]
526527
Integer Ring localized at [2]
527528

0 commit comments

Comments
 (0)