Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
18787: doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
rwst committed Mar 7, 2017
1 parent 9430605 commit be9ec4e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/sage/symbolic/expression.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2975,6 +2975,17 @@ cdef class Expression(CommutativeRingElement):
RuntimeError: indeterminate expression: unsigned_infinity +- infinity encountered.
sage: nsr(unsigned_infinity) + nsr(unsigned_infinity)
Infinity
Check that :trac:`18787` is fixed::
sage: f(x) = Zmod(7)(1) * x**2 + Zmod(9)(1) * x**3
Traceback (most recent call last):
...
TypeError: Multiplication of symbolic variable and an element of a ring with positive characteristic.
sage: f(x) = Zmod(7)(3) * x**2 + Zmod(9)(3) * x**3
Traceback (most recent call last):
...
TypeError: Multiplication of symbolic variable and an element of a ring with positive characteristic.
"""
cdef GEx x
cdef Expression _right = <Expression>right
Expand Down

0 comments on commit be9ec4e

Please sign in to comment.