Skip to content

Commit b7f9012

Browse files
author
Matthias Koeppe
committed
sage -fixdoctests src/sage/rings
1 parent 1ed3997 commit b7f9012

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

src/sage/rings/finite_rings/element_base.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,8 @@ cdef class FinitePolyExtElement(FiniteRingElement):
586586
Finite Field in a of size 19^2
587587
sage: b = a**20
588588
sage: p = FinitePolyExtElement.charpoly(b, "x", algorithm="pari")
589-
sage: q = FinitePolyExtElement.charpoly(b, "x", algorithm="matrix") # needs sage.modules
590-
sage: q == p # needs sage.modules
589+
sage: q = FinitePolyExtElement.charpoly(b, "x", algorithm="matrix") # needs sage.modules
590+
sage: q == p # needs sage.modules
591591
True
592592
sage: p
593593
x^2 + 15*x + 4

src/sage/rings/finite_rings/residue_field_pari_ffelt.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class ResidueFiniteField_pari_ffelt(ResidueField_generic, FiniteField_pari_ffelt
118118
119119
sage: R.<t> = GF(5)[]; P = R.ideal(4*t^12 + 3*t^11 + 4*t^10 + t^9 + t^8 + 3*t^7 + 2*t^6 + 3*t^4 + t^3 + 3*t^2 + 2)
120120
sage: k.<a> = P.residue_field()
121-
sage: V = k.vector_space(map=False); v = V([1,2,3,4,5,6,7,8,9,0,1,2]); k(v) # indirect doctest # needs sage.modules
121+
sage: V = k.vector_space(map=False); v = V([1,2,3,4,5,6,7,8,9,0,1,2]); k(v) # indirect doctest # needs sage.modules
122122
2*a^11 + a^10 + 4*a^8 + 3*a^7 + 2*a^6 + a^5 + 4*a^3 + 3*a^2 + 2*a + 1
123123
"""
124124
try:

src/sage/rings/function_field/function_field_rational.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def __init__(self, constant_field, names, category=None):
138138
139139
sage: K.<t> = FunctionField(CC); K # needs sage.rings.real_mpfr
140140
Rational function field in t over Complex Field with 53 bits of precision
141-
sage: TestSuite(K).run() # long time (5s) # needs sage.rings.real_mpfr
141+
sage: TestSuite(K).run() # long time (5s) # needs sage.rings.real_mpfr
142142
143143
sage: FunctionField(QQ[I], 'alpha') # needs sage.rings.number_field
144144
Rational function field in alpha over

src/sage/rings/number_field/number_field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,7 @@ class NumberField_generic(WithEqualityById, number_field_base.NumberField):
13111311
This example was suggested on sage-nt; see :trac:`18942`::
13121312
13131313
sage: G = DirichletGroup(80) # needs sage.modular
1314-
sage: for chi in G: # long time # needs sage.modular
1314+
sage: for chi in G: # long time # needs sage.modular
13151315
....: D = ModularSymbols(chi, 2, -1).cuspidal_subspace().new_subspace().decomposition()
13161316
....: for f in D:
13171317
....: elt = f.q_eigenform(10, 'alpha')[3]

src/sage/rings/padics/padic_extension_leaves.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ class UnramifiedExtensionRingFixedMod(UnramifiedExtensionGeneric, pAdicFixedModR
303303
TESTS::
304304
305305
sage: R.<a> = ZqFM(27,1000) # needs sage.libs.flint
306-
sage: TestSuite(R).run(skip='_test_log',max_runs=4) # long time # needs sage.libs.flint
306+
sage: TestSuite(R).run(skip='_test_log',max_runs=4) # long time # needs sage.libs.flint
307307
"""
308308
def __init__(self, exact_modulus, poly, prec, print_mode, shift_seed, names, implementation='FLINT'):
309309
"""

src/sage/rings/padics/padic_valuation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ class pAdicFromLimitValuation(FiniteExtensionFromLimitValuation, pAdicValuation_
13601360
13611361
TESTS::
13621362
1363-
sage: TestSuite(v).run(skip='_test_shift') # long time # needs sage.rings.number_field
1363+
sage: TestSuite(v).run(skip='_test_shift') # long time # needs sage.rings.number_field
13641364
13651365
The ``_test_shift`` test fails because the parent of the shift is
13661366
incorrect, see :trac:`23971`::

src/sage/rings/polynomial/polynomial_element.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7730,7 +7730,7 @@ cdef class Polynomial(CommutativePolynomial):
77307730
sage: f = x^3 - 1
77317731
sage: f.roots()
77327732
[(1, 1)]
7733-
sage: f.roots(ring=CC) # ... - low order bits slightly different on ppc # needs sage.rings.real_mpfr
7733+
sage: f.roots(ring=CC) # ... - low order bits slightly different on ppc # needs sage.rings.real_mpfr
77347734
[(1.00000000000000, 1),
77357735
(-0.500000000000000 - 0.86602540378443...*I, 1),
77367736
(-0.500000000000000 + 0.86602540378443...*I, 1)]

src/sage/rings/qqbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1525,7 +1525,7 @@ def _factor_univariate_polynomial(self, f):
15251525
(12) * (x - 0.5773502691896258?) * (x + 0.5773502691896258?)
15261526
sage: AA._factor_univariate_polynomial(12*x^2 + 4)
15271527
(12) * (x^2 + 0.3333333333333334?)
1528-
sage: AA._factor_univariate_polynomial(EllipticCurve('11a1').change_ring(AA).division_polynomial(5)) # needs sage.schemes
1528+
sage: AA._factor_univariate_polynomial(EllipticCurve('11a1').change_ring(AA).division_polynomial(5)) # needs sage.schemes
15291529
(5) * (x - 16.00000000000000?) * (x - 5.000000000000000?) * (x - 1.959674775249769?) * (x + 2.959674775249769?) * (x^2 - 2.854101966249685?*x + 15.47213595499958?) * (x^2 + 1.909830056250526?*x + 1.660606461254312?) * (x^2 + 3.854101966249685?*x + 6.527864045000421?) * (x^2 + 13.09016994374948?*x + 93.33939353874569?)
15301530
15311531
"""

src/sage/rings/rational.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ cdef class Rational(sage.structure.element.FieldElement):
14591459
...
14601460
NotImplementedError: is_norm is not implemented unconditionally
14611461
for norms from non-Galois number fields
1462-
sage: 7.is_norm(K, proof=False) # needs sage.rings.number_field
1462+
sage: 7.is_norm(K, proof=False)
14631463
False
14641464
14651465
AUTHORS:

src/sage/rings/valuation/valuation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def mac_lane_approximants(self, G, assume_squarefree=False, require_final_EF=Tru
481481
[ Gauss valuation induced by (x + 1)-adic valuation, v(y) = 7/2 ],
482482
[ Gauss valuation induced by (x + 1)-adic valuation, v(y^13 + y^12 + y^10 + y^7 + y^6 + y^3 + 1) = 1 ]]
483483
sage: v0 = valuations.FunctionFieldValuation(K, GaussValuation(K._ring, valuations.TrivialValuation(k)).augmentation(x^3+x^2+1,1))
484-
sage: v0.mac_lane_approximants(F, assume_squarefree=True) # assumes squarefree for speed # needs sage.rings.function_field
484+
sage: v0.mac_lane_approximants(F, assume_squarefree=True) # assumes squarefree for speed
485485
[[ Gauss valuation induced by (x^3 + x^2 + 1)-adic valuation, v(y + x^3 + x^2 + x) = 2, v(y^2 + (x^6 + x^4 + 1)*y + x^14 + x^10 + x^9 + x^8 + x^5 + x^4 + x^3 + x^2 + x) = 5 ],
486486
[ Gauss valuation induced by (x^3 + x^2 + 1)-adic valuation, v(y^2 + (x^2 + x)*y + 1) = 1 ],
487487
[ Gauss valuation induced by (x^3 + x^2 + 1)-adic valuation, v(y^3 + (x + 1)*y^2 + (x + 1)*y + x^2 + x + 1) = 1 ],

0 commit comments

Comments
 (0)