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

Commit

Permalink
src/sage/symbolic/ring.pyx: Update doctest output with deprecation wa…
Browse files Browse the repository at this point in the history
…rning
  • Loading branch information
Matthias Koeppe committed Oct 17, 2021
1 parent 4bc059b commit 8624925
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sage/symbolic/ring.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1323,6 +1323,10 @@ def is_SymbolicExpressionRing(R):
sage: from sage.symbolic.ring import is_SymbolicExpressionRing
sage: is_SymbolicExpressionRing(ZZ)
doctest:warning...
DeprecationWarning: is_SymbolicExpressionRing is deprecated;
use "... is SR" or isinstance(..., sage.rings.abc.SymbolicRing instead
See https://trac.sagemath.org/32665 for details.
False
sage: is_SymbolicExpressionRing(SR)
True
Expand Down

0 comments on commit 8624925

Please sign in to comment.