Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #12879: TestSuite failures for HeckeModule Homsets
Adding a Testsuite run in #12876 in the documentation of sage.categories.hecke_modules.HeckeModules.ParentMethods._Hom_ revealed the following bug: {{{ sage: M = ModularForms(Gamma0(7), 4) sage: H = Hom(M); H sage: H.zero() Traceback (most recent call last): File "<ipython console>", line 1, in <module> File "cachefunc.pyx", line 1397, in sage.misc.cachefunc.CachedMethodCallerNoArgs.__call__ (sage/misc/cachefunc.c:7026) File "/opt/sage-5.0.beta11/local/lib/python2.7/site- packages/sage/categories/modules.py", line 221, in zero From: Free module generated by {1, 2, 3} over Integer Ring File "/opt/sage-5.0.beta11/local/lib/python2.7/site- packages/sage/modular/hecke/homspace.py", line 111, in __call__ return morphism.HeckeModuleMorphism_matrix(self, A, name) File "/opt/sage-5.0.beta11/local/lib/python2.7/site- packages/sage/modular/hecke/morphism.py", line 116, in __init__ MatrixMorphism.__init__(self, parent, A) File "/opt/sage-5.0.beta11/local/lib/python2.7/site- packages/sage/modules/matrix_morphism.py", line 1191, in __init__ parent.codomain().rank())(A) File "/opt/sage-5.0.beta11/local/lib/python2.7/site- packages/sage/matrix/matrix_space.py", line 543, in __call__ return self.matrix(entries, copy=copy, coerce=coerce, rows=rows) File "/opt/sage-5.0.beta11/local/lib/python2.7/site- packages/sage/matrix/matrix_space.py", line 1372, in matrix return self.__matrix_class(self, entries=x, copy=copy, coerce=coerce) File "matrix_rational_dense.pyx", line 205, in sage.matrix.matrix_rational_dense.Matrix_rational_dense.__init__ (sage/matrix/matrix_rational_dense.c:5788) TypeError: entries must be coercible to a list or integer }}} {{{TestSuite(H).run()}}} also fails for "_test_elements". URL: https://trac.sagemath.org/12879 Reported by: nthiery Ticket author(s): Frédéric Chapoton Reviewer(s): Travis Scrimshaw, Maarten Derickx
- Loading branch information