On one machine, I encountered persistent doctest errors with a specific random 
seed:

sage -t --long --warn-long 51.5 --random-seed=218399045362864612956198671406486371465 src/sage/plot/plot.py # 1 doctest failed sage -t --long --warn-long 51.5 --random-seed=218399045362864612956198671406486371465 src/sage/schemes/elliptic_curves/ell_field.py # 2 doctests failed

With another random seed, tests passed.

Log is attached.



Am 22.01.24 um 01:23 schrieb Volker Braun:
As always, you can get the latest beta version from the "develop" git branch. Alternatively, the self-contained source tarball is at http://www.sagemath.org/download-latest.html

3dd953c3aa6 (tag: 10.3.beta6, github/develop) Updated SageMath version to 
10.3.beta6
...

--
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-release/0a7205e5-e856-4f11-8af4-0624d45243ac%40aau.at.
Running doctests with ID 2024-01-22-07-39-00-928d732d.
Running with SAGE_LOCAL='/local/cheuberg/local/sage-10.3.beta6/local' and SAGE_VENV='/local/cheuberg/local/sage-10.3.beta6/local/var/lib/sage/venv-python3.11.1'
Using --optional=ccache,debian,pip,sage,sage_spkg
Features to be detected: 4ti2,benzene,bliss,buckygen,conway_polynomials,csdp,cvxopt,cvxopt,database_cremona_ellcurve,database_cremona_mini_ellcurve,database_cubic_hecke,database_ellcurves,database_graphs,database_jones_numfield,database_knotinfo,dvipng,fpylll,fricas,gap_package_atlasrep,gap_package_design,gap_package_grape,gap_package_guava,gap_package_hap,gap_package_polycyclic,gap_package_qpa,gap_package_quagroup,gfan,graphviz,imagemagick,ipython,jmol,jupymake,kenzo,latte_int,lrcalc_python,lrslib,mcqd,meataxe,mpmath,msolve,nauty,networkx,numpy,palp,pandoc,pdf2svg,pdftocairo,pexpect,phitigra,pillow,plantri,polytopes_db,polytopes_db_4d,pplpy,primecountpy,ptyprocess,pynormaliz,pyparsing,python_igraph,requests,rubiks,sage.combinat,sage.geometry.polyhedron,sage.graphs,sage.groups,sage.libs.braiding,sage.libs.ecl,sage.libs.flint,sage.libs.gap,sage.libs.linbox,sage.libs.m4ri,sage.libs.ntl,sage.libs.pari,sage.libs.singular,sage.misc.cython,sage.modular,sage.modules,sage.numerical.mip,sage.plot,sage.rings.complex_double,sage.rings.finite_rings,sage.rings.function_field,sage.rings.number_field,sage.rings.padics,sage.rings.polynomial.pbori,sage.rings.real_double,sage.rings.real_mpfr,sage.sat,sage.schemes,sage.symbolic,sage_numerical_backends_coin,sagemath_doc_html,scipy,singular,sphinx,symengine_py,sympy,tdlib,threejs
Doctesting 2 files.
sage -t --long --warn-long 51.5 --random-seed=218399045362864612956198671406486371465 src/sage/plot/plot.py
**********************************************************************
File "src/sage/plot/plot.py", line 1855, in sage.plot.plot.plot
Failed example:
    plot(f, (x, -3.5, 3.5), detect_poles='show', exclude=[-3..3],
         ymin=-5, ymax=5)
Expected:
    Graphics object consisting of 12 graphics primitives
Got:
    Graphics object consisting of 13 graphics primitives
**********************************************************************
1 item had failures:
   1 of 157 in sage.plot.plot.plot
    [470 tests, 1 failure, 44.41 s]
sage -t --long --warn-long 51.5 --random-seed=218399045362864612956198671406486371465 src/sage/schemes/elliptic_curves/ell_field.py
**********************************************************************
File "src/sage/schemes/elliptic_curves/ell_field.py", line 1051, in sage.schemes.elliptic_curves.ell_field.EllipticCurve_field.division_field
Failed example:
    K = E.division_field(l)
Exception raised:
    Traceback (most recent call last):
      File "sage/rings/finite_rings/integer_mod.pyx", line 382, in sage.rings.finite_rings.integer_mod.IntegerMod_abstract.__init__
        z = integer_ring.Z(value)
      File "sage/structure/parent.pyx", line 901, in sage.structure.parent.Parent.__call__
        return mor._call_(x)
      File "sage/structure/coerce_maps.pyx", line 163, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_
        raise
      File "sage/structure/coerce_maps.pyx", line 158, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_
        return C._element_constructor(x)
      File "sage/rings/integer.pyx", line 712, in sage.rings.integer.Integer.__init__
        raise TypeError("unable to coerce %s to an integer" % type(x))
    TypeError: unable to coerce <class 'sage.categories.morphism.IdentityMorphism'> to an integer

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/local/cheuberg/local/sage-10.3.beta6/src/sage/structure/sequence.py", line 450, in __init__
        x[i] = universe(x[i])
               ^^^^^^^^^^^^^^
      File "sage/structure/parent.pyx", line 901, in sage.structure.parent.Parent.__call__
        return mor._call_(x)
      File "sage/structure/coerce_maps.pyx", line 163, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_
        raise
      File "sage/structure/coerce_maps.pyx", line 158, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_
        return C._element_constructor(x)
      File "/local/cheuberg/local/sage-10.3.beta6/src/sage/rings/finite_rings/integer_mod_ring.py", line 1175, in _element_constructor_
        return integer_mod.IntegerMod(self, x)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "sage/rings/finite_rings/integer_mod.pyx", line 203, in sage.rings.finite_rings.integer_mod.IntegerMod
        return t(parent, value)
      File "sage/rings/finite_rings/integer_mod.pyx", line 390, in sage.rings.finite_rings.integer_mod.IntegerMod_abstract.__init__
        value = sage.rings.rational_field.QQ(value)
      File "sage/structure/parent.pyx", line 901, in sage.structure.parent.Parent.__call__
        return mor._call_(x)
      File "sage/structure/coerce_maps.pyx", line 163, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_
        raise
      File "sage/structure/coerce_maps.pyx", line 158, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_
        return C._element_constructor(x)
      File "sage/rings/rational.pyx", line 547, in sage.rings.rational.Rational.__init__
        self.__set_value(x, base)
      File "sage/rings/rational.pyx", line 692, in sage.rings.rational.Rational._Rational__set_value
        raise TypeError("unable to convert {!r} to a rational".format(x))
    TypeError: unable to convert Identity endomorphism of Finite Field of size 527326021 to a rational

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/local/cheuberg/local/sage-10.3.beta6/src/sage/doctest/forker.py", line 712, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/local/cheuberg/local/sage-10.3.beta6/src/sage/doctest/forker.py", line 1147, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.schemes.elliptic_curves.ell_field.EllipticCurve_field.division_field[58]>", line 1, in <module>
        K = E.division_field(l)
            ^^^^^^^^^^^^^^^^^^^
      File "/local/cheuberg/local/sage-10.3.beta6/src/sage/schemes/elliptic_curves/ell_field.py", line 1130, in division_field
        h = self.defining_polynomial().change_ring(F_to_K)(x, polygen(K), 1)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "sage/rings/polynomial/multi_polynomial.pyx", line 883, in sage.rings.polynomial.multi_polynomial.MPolynomial.change_ring
        R = self.parent().hom(R, self.parent().change_ring(R.codomain()))
      File "sage/structure/parent_gens.pyx", line 304, in sage.structure.parent_gens.ParentWithGens.hom
        return parent.Parent.hom(self, im_gens, codomain, base_map=base_map, category=category, check=check)
      File "sage/structure/parent.pyx", line 1439, in sage.structure.parent.Parent.hom
        return self.Hom(codomain, **Hom_kwds)(im_gens, **kwds)
      File "sage/structure/parent.pyx", line 903, in sage.structure.parent.Parent.__call__
        return mor._call_with_args(x, args, kwds)
      File "sage/structure/coerce_maps.pyx", line 182, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_with_args
        raise
      File "sage/structure/coerce_maps.pyx", line 172, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_with_args
        return C._element_constructor(x, **kwds)
      File "/local/cheuberg/local/sage-10.3.beta6/src/sage/rings/homset.py", line 195, in _element_constructor_
        x = self.domain().base().Hom(self.codomain().base())(x)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/local/cheuberg/local/sage-10.3.beta6/src/sage/rings/finite_rings/homset.py", line 99, in __call__
        return FiniteFieldHomomorphism_prime(self, im_gens, base_map=base_map, check=check)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "sage/rings/finite_rings/hom_prime_finite_field.pyx", line 75, in sage.rings.finite_rings.hom_prime_finite_field.FiniteFieldHomomorphism_prime.__init__
        FiniteFieldHomomorphism_generic.__init__(self, parent, im_gens, base_map=base_map,
      File "sage/rings/finite_rings/hom_finite_field.pyx", line 240, in sage.rings.finite_rings.hom_finite_field.FiniteFieldHomomorphism_generic.__init__
        RingHomomorphism_im_gens.__init__(self, parent, im_gens, base_map=base_map, check=check)
      File "sage/rings/morphism.pyx", line 1730, in sage.rings.morphism.RingHomomorphism_im_gens.__init__
        im_gens = sage.structure.all.Sequence(im_gens, parent.codomain(),
      File "/local/cheuberg/local/sage-10.3.beta6/src/sage/structure/sequence.py", line 266, in Sequence
        return Sequence_generic(x, universe, check, immutable, cr, cr_str, use_sage_types)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/local/cheuberg/local/sage-10.3.beta6/src/sage/structure/sequence.py", line 452, in __init__
        raise TypeError("unable to convert {} to an element of {}"
    TypeError: unable to convert Identity endomorphism of Finite Field of size 527326021 to an element of Finite Field of size 527326021
**********************************************************************
File "src/sage/schemes/elliptic_curves/ell_field.py", line 1055, in sage.schemes.elliptic_curves.ell_field.EllipticCurve_field.division_field
Failed example:
    check(E, l, K)                # long time
Exception raised:
    Traceback (most recent call last):
      File "sage/structure/category_object.pyx", line 848, in sage.structure.category_object.CategoryObject.getattr_from_category
        return self._cached_methods[name]
    KeyError: 'order'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/local/cheuberg/local/sage-10.3.beta6/src/sage/doctest/forker.py", line 712, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/local/cheuberg/local/sage-10.3.beta6/src/sage/doctest/forker.py", line 1147, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.schemes.elliptic_curves.ell_field.EllipticCurve_field.division_field[61]>", line 1, in <module>
        check(E, l, K)                # long time
        ^^^^^^^^^^^^^^
      File "<doctest sage.schemes.elliptic_curves.ell_field.EllipticCurve_field.division_field[53]>", line 3, in check
        cof = EE.order().prime_to_m_part(l)
              ^^^^^^^^
      File "sage/structure/category_object.pyx", line 842, in sage.structure.category_object.CategoryObject.__getattr__
        return self.getattr_from_category(name)
      File "sage/structure/category_object.pyx", line 857, in sage.structure.category_object.CategoryObject.getattr_from_category
        attr = getattr_from_other_class(self, cls, name)
      File "sage/cpython/getattr.pyx", line 357, in sage.cpython.getattr.getattr_from_other_class
        raise AttributeError(dummy_error_message)
    AttributeError: 'EllipticCurve_number_field_with_category' object has no attribute 'order'
**********************************************************************
1 item had failures:
   2 of  63 in sage.schemes.elliptic_curves.ell_field.EllipticCurve_field.division_field
    [370 tests, 2 failures, 19.99 s]
----------------------------------------------------------------------
sage -t --long --warn-long 51.5 --random-seed=218399045362864612956198671406486371465 src/sage/plot/plot.py  # 1 doctest failed
sage -t --long --warn-long 51.5 --random-seed=218399045362864612956198671406486371465 src/sage/schemes/elliptic_curves/ell_field.py  # 2 doctests failed
----------------------------------------------------------------------
Total time for all tests: 65.3 seconds
    cpu time: 61.7 seconds
    cumulative wall time: 64.4 seconds
Features detected for doctesting: numpy,sage.graphs,sage.libs.pari,sage.rings.finite_rings,sage.rings.number_field,sage.schemes,sage.symbolic
pytest is not installed in the venv, skip checking tests that rely on it

Reply via email to