@@ -563,15 +563,15 @@ def _coerce_map_from_(self, R):
563
563
TESTS::
564
564
565
565
sage: P5.<x> = GF(5)[]
566
- sage: Q = P5.quo([(x^2+1)^2]) # needs sage.rings.finite_rings
566
+ sage: Q = P5.quo([(x^2+1)^2])
567
567
sage: P.<x> = ZZ[]
568
568
sage: Q1 = P.quo([(x^2+1)^2*(x^2-3)])
569
569
sage: Q2 = P.quo([(x^2+1)^2*(x^5+3)])
570
- sage: Q.has_coerce_map_from(Q1) #indirect doctest # needs sage.rings.finite_rings
570
+ sage: Q.has_coerce_map_from(Q1) #indirect doctest
571
571
True
572
- sage: Q1.has_coerce_map_from(Q) # needs sage.rings.finite_rings
572
+ sage: Q1.has_coerce_map_from(Q)
573
573
False
574
- sage: Q1.has_coerce_map_from(Q2) # needs sage.rings.finite_rings
574
+ sage: Q1.has_coerce_map_from(Q2)
575
575
False
576
576
577
577
The following tests against a bug fixed in :trac:`8992`::
@@ -787,9 +787,9 @@ def construction(self):
787
787
sage: F(R) == Q
788
788
True
789
789
sage: P.<t> = GF(3)[]
790
- sage: Q = P.quo([2 + t^2]) # needs sage.rings.finite_rings
791
- sage: F, R = Q.construction() # needs sage.rings.finite_rings
792
- sage: F(R) == Q # needs sage.rings.finite_rings
790
+ sage: Q = P.quo([2 + t^2])
791
+ sage: F, R = Q.construction()
792
+ sage: F(R) == Q
793
793
True
794
794
795
795
AUTHOR:
@@ -910,7 +910,7 @@ def is_finite(self):
910
910
::
911
911
912
912
sage: P.<v> = GF(2)[]
913
- sage: P.quotient(v^2 - v).is_finite() # needs sage.rings.finite_rings
913
+ sage: P.quotient(v^2 - v).is_finite()
914
914
True
915
915
"""
916
916
f = self .modulus ()
@@ -927,8 +927,8 @@ def __iter__(self):
927
927
EXAMPLES::
928
928
929
929
sage: R.<x> = GF(3)[]
930
- sage: Q = R.quo(x^3 - x^2 - x - 1) # needs sage.rings.finite_rings
931
- sage: list(Q) # needs sage.rings.finite_rings
930
+ sage: Q = R.quo(x^3 - x^2 - x - 1)
931
+ sage: list(Q)
932
932
[0,
933
933
1,
934
934
2,
@@ -939,7 +939,7 @@ def __iter__(self):
939
939
...
940
940
2*xbar^2 + 2*xbar + 1,
941
941
2*xbar^2 + 2*xbar + 2]
942
- sage: len(_) == Q.cardinality() == 27 # needs sage.rings.finite_rings
942
+ sage: len(_) == Q.cardinality() == 27
943
943
True
944
944
"""
945
945
if not self .is_finite ():
@@ -978,8 +978,8 @@ def degree(self):
978
978
EXAMPLES::
979
979
980
980
sage: R.<x> = PolynomialRing(GF(3))
981
- sage: S = R.quotient(x^2005 + 1) # needs sage.rings.finite_rings
982
- sage: S.degree() # needs sage.rings.finite_rings
981
+ sage: S = R.quotient(x^2005 + 1)
982
+ sage: S.degree()
983
983
2005
984
984
"""
985
985
return self .modulus ().degree ()
@@ -1191,8 +1191,8 @@ def modulus(self):
1191
1191
EXAMPLES::
1192
1192
1193
1193
sage: R.<x> = PolynomialRing(GF(3))
1194
- sage: S = R.quotient(x^2 - 2) # needs sage.rings.finite_rings
1195
- sage: S.modulus() # needs sage.rings.finite_rings
1194
+ sage: S = R.quotient(x^2 - 2)
1195
+ sage: S.modulus()
1196
1196
x^2 + 1
1197
1197
"""
1198
1198
return self .__polynomial
@@ -1458,7 +1458,7 @@ def S_class_group(self, S, proof=True):
1458
1458
`x^2 + 31` from 12 to 2, i.e. we lose a generator of order 6 (this was
1459
1459
fixed in :trac:`14489`)::
1460
1460
1461
- sage: S.S_class_group([K.ideal(a)]) # not tested # needs sage.rings.number_field
1461
+ sage: S.S_class_group([K.ideal(a)]) # representation varies # not tested, needs sage.rings.number_field
1462
1462
[((1/4*xbar^2 + 31/4, (-1/8*a + 1/8)*xbar^2 - 31/8*a + 31/8,
1463
1463
1/16*xbar^3 + 1/16*xbar^2 + 31/16*xbar + 31/16,
1464
1464
-1/16*a*xbar^3 + (1/16*a + 1/8)*xbar^2 - 31/16*a*xbar + 31/16*a + 31/8),
@@ -1470,10 +1470,11 @@ def S_class_group(self, S, proof=True):
1470
1470
1471
1471
Note that all the returned values live where we expect them to::
1472
1472
1473
- sage: CG = S.S_class_group([]) # needs sage.rings.number_field
1474
- sage: type(CG[0][0][1]) # needs sage.rings.number_field
1473
+ sage: # needs sage.rings.number_field
1474
+ sage: CG = S.S_class_group([])
1475
+ sage: type(CG[0][0][1])
1475
1476
<class 'sage.rings.polynomial.polynomial_quotient_ring.PolynomialQuotientRing_generic_with_category.element_class'>
1476
- sage: type(CG[0][1]) # needs sage.rings.number_field
1477
+ sage: type(CG[0][1])
1477
1478
<class 'sage.rings.integer.Integer'>
1478
1479
1479
1480
TESTS:
0 commit comments