summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Krenn <git@danielkrenn.at>2016-02-15 13:46:39 +0100
committerDaniel Krenn <git@danielkrenn.at>2016-02-15 13:46:39 +0100
commita30a18a230a1f77fac00e636b779df8f571eda62 (patch)
treee282f5d274c9e01c8dd9680ef862ddb17ad24fd7
parentReviewer code and documentation changes. (diff)
Trac #10519: two small cross-reviewing changes
-rw-r--r--src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py b/src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py
index fba513e..4dc17be 100644
--- a/src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py
+++ b/src/sage/rings/asymptotic/asymptotics_multivariate_generating_functions.py
@@ -625,6 +625,13 @@ class FractionWithFactoredDenominator(RingElement):
``True`` or ``False``.
TESTS::
+
+ sage: from sage.rings.asymptotic.asymptotics_multivariate_generating_functions import FractionWithFactoredDenominatorRing
+ sage: R.<x,y> = PolynomialRing(QQ)
+ sage: FFPD = FractionWithFactoredDenominatorRing(R)
+ sage: f = FFPD(x, [])
+ sage: f == x
+ True
"""
from sage.structure.element import have_same_parent
if have_same_parent(self, other):
@@ -3164,7 +3171,7 @@ class FractionWithFactoredDenominatorRing(UniqueRepresentation, Ring):
numerator_ring = denominator_ring
if not numerator_ring.has_coerce_map_from(denominator_ring):
raise ValueError('numerator ring {} has no coercion map from the '
- 'denominator ring {}.'.format(
+ 'denominator ring {}'.format(
numerator_ring, denominator_ring))
category = Rings().or_subcategory(category)
return super(FractionWithFactoredDenominatorRing, cls).__classcall__(cls,