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

Commit

Permalink
Fix doctest for Trac #20767
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Aug 30, 2016
1 parent 7bfd42a commit 343131a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/sage/rings/asymptotic/growth_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,10 +633,8 @@ def _substitute_(self, rules):
sage: Variable('1/x')._substitute_({'x': 'z'})
Traceback (most recent call last):
...
TypeError: Cannot substitute in 1/x in
<class 'sage.rings.asymptotic.growth_group.Variable'>.
> *previous* TypeError: unsupported operand parent(s) for '/':
'Integer Ring' and '<type 'str'>'
TypeError: Cannot substitute in 1/x in <class 'sage.rings.asymptotic.growth_group.Variable'>.
> *previous* TypeError: unsupported operand type(s) for /: 'sage.rings.integer.Integer' and 'str'
sage: Variable('1/x')._substitute_({'x': 0})
Traceback (most recent call last):
...
Expand Down

0 comments on commit 343131a

Please sign in to comment.