#19399: let category of growth group be determined by input
-------------------------------------+-------------------------------------
Reporter: dkrenn | Owner:
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.10
Component: asymptotic | Resolution:
expansions | Merged in:
Keywords: | Reviewers: Clemens Heuberger
Authors: Daniel Krenn | Work issues:
Report Upstream: N/A | Commit:
Branch: | 7338a050ea9f7c901bcf293afb6e2a033bf608e6
u/cheuberg/t/19399 | Stopgaps:
Dependencies: #19083 |
-------------------------------------+-------------------------------------
Changes (by cheuberg):
* status: needs_info => needs_work
Comment:
Replying to [comment:8 cheuberg]:
> I do not understand why there was a failure on a patchbot.
Sorry, I can now reproduce the failure:
{{{
sage -t --long src/sage/rings/asymptotic/growth_group.py
**********************************************************************
File "src/sage/rings/asymptotic/growth_group.py", line 3649, in
sage.rings.asymptotic.growth_group.GrowthGroupFactory
Failed example:
TestSuite(GrowthGroup('x^ZZ')).run(verbose=True) # long time
Expected:
running ._test_an_element() . . . pass
running ._test_associativity() . . . pass
running ._test_cardinality() . . . pass
running ._test_category() . . . pass
running ._test_elements() . . .
Running the test suite of self.an_element()
running ._test_category() . . . pass
running ._test_eq() . . . pass
running ._test_not_implemented_methods() . . . pass
running ._test_pickling() . . . pass
pass
running ._test_elements_eq_reflexive() . . . pass
running ._test_elements_eq_symmetric() . . . pass
running ._test_elements_eq_transitive() . . . pass
running ._test_elements_neq() . . . pass
running ._test_eq() . . . pass
running ._test_not_implemented_methods() . . . pass
running ._test_one() . . . pass
running ._test_pickling() . . . pass
running ._test_prod() . . . pass
running ._test_some_elements() . . . pass
Got:
running ._test_an_element() . . . pass
running ._test_associativity() . . . pass
running ._test_cardinality() . . . pass
running ._test_category() . . . pass
running ._test_elements() . . .
Running the test suite of self.an_element()
running ._test_category() . . . pass
running ._test_eq() . . . pass
running ._test_not_implemented_methods() . . . pass
running ._test_pickling() . . . pass
pass
running ._test_elements_eq_reflexive() . . . pass
running ._test_elements_eq_symmetric() . . . pass
running ._test_elements_eq_transitive() . . . pass
running ._test_elements_neq() . . . pass
running ._test_eq() . . . pass
running ._test_inverse() . . . pass
running ._test_not_implemented_methods() . . . pass
running ._test_one() . . . pass
running ._test_pickling() . . . pass
running ._test_prod() . . . pass
running ._test_some_elements() . . . pass
**********************************************************************
File "src/sage/rings/asymptotic/growth_group.py", line 3674, in
sage.rings.asymptotic.growth_group.GrowthGroupFactory
Failed example:
TestSuite(GrowthGroup('QQ^y')).run(verbose=True) # long time
Expected:
running ._test_an_element() . . . pass
running ._test_associativity() . . . pass
running ._test_cardinality() . . . pass
running ._test_category() . . . pass
running ._test_elements() . . .
Running the test suite of self.an_element()
running ._test_category() . . . pass
running ._test_eq() . . . pass
running ._test_not_implemented_methods() . . . pass
running ._test_pickling() . . . pass
pass
running ._test_elements_eq_reflexive() . . . pass
running ._test_elements_eq_symmetric() . . . pass
running ._test_elements_eq_transitive() . . . pass
running ._test_elements_neq() . . . pass
running ._test_eq() . . . pass
running ._test_not_implemented_methods() . . . pass
running ._test_one() . . . pass
running ._test_pickling() . . . pass
running ._test_prod() . . . pass
running ._test_some_elements() . . . pass
Got:
running ._test_an_element() . . . pass
running ._test_associativity() . . . pass
running ._test_cardinality() . . . pass
running ._test_category() . . . pass
running ._test_elements() . . .
Running the test suite of self.an_element()
running ._test_category() . . . pass
running ._test_eq() . . . pass
running ._test_not_implemented_methods() . . . pass
running ._test_pickling() . . . pass
pass
running ._test_elements_eq_reflexive() . . . pass
running ._test_elements_eq_symmetric() . . . pass
running ._test_elements_eq_transitive() . . . pass
running ._test_elements_neq() . . . pass
running ._test_eq() . . . pass
running ._test_inverse() . . . fail
Traceback (most recent call last):
File "/local/sage/sage-6.9.rc0/local/lib/python2.7/site-
packages/sage/misc/sage_unittest.py", line 283, in run
test_method(tester = tester)
File "/local/sage/sage-6.9.rc0/local/lib/python2.7/site-
packages/sage/categories/groups.py", line 150, in _test_inverse
tester.assertEquals(x * ~x, self.one())
File "/local/sage/sage-6.9.rc0/local/lib/python2.7/site-
packages/sage/rings/asymptotic/growth_group.py", line 3151, in __invert__
return self.parent()._create_element_via_parent_(1 / self.base)
File "sage/structure/element.pyx", line 1988, in
sage.structure.element.RingElement.__div__
(/local/sage/sage-6.9.rc0/src/build/cythonized/sage/structure/element.c:18129)
return coercion_model.bin_op(self, right, div)
File "sage/structure/coerce.pyx", line 1018, in
sage.structure.coerce.CoercionModel_cache_maps.bin_op
(/local/sage/sage-6.9.rc0/src/build/cythonized/sage/structure/coerce.c:8689)
return PyObject_CallObject(op, xy)
File "sage/structure/element.pyx", line 1987, in
sage.structure.element.RingElement.__div__
(/local/sage/sage-6.9.rc0/src/build/cythonized/sage/structure/element.c:18104)
return (<RingElement>self)._div_(<RingElement>right)
File "sage/rings/rational.pyx", line 2147, in
sage.rings.rational.Rational._div_
(/local/sage/sage-6.9.rc0/src/build/cythonized/sage/rings/rational.c:19787)
raise ZeroDivisionError('rational division by zero')
ZeroDivisionError: rational division by zero
------------------------------------------------------------
running ._test_not_implemented_methods() . . . pass
running ._test_one() . . . pass
running ._test_pickling() . . . pass
running ._test_prod() . . . pass
running ._test_some_elements() . . . pass
The following tests failed: _test_inverse
**********************************************************************
File "src/sage/rings/asymptotic/growth_group.py", line 3699, in
sage.rings.asymptotic.growth_group.GrowthGroupFactory
Failed example:
TestSuite(GrowthGroup('x^QQ * log(x)^ZZ')).run(verbose=True) # long
time
Expected:
running ._test_an_element() . . . pass
running ._test_associativity() . . . pass
running ._test_cardinality() . . . pass
running ._test_category() . . . pass
running ._test_elements() . . .
Running the test suite of self.an_element()
running ._test_category() . . . pass
running ._test_eq() . . . pass
running ._test_not_implemented_methods() . . . pass
running ._test_pickling() . . . pass
pass
running ._test_elements_eq_reflexive() . . . pass
running ._test_elements_eq_symmetric() . . . pass
running ._test_elements_eq_transitive() . . . pass
running ._test_elements_neq() . . . pass
running ._test_eq() . . . pass
running ._test_not_implemented_methods() . . . pass
running ._test_one() . . . pass
running ._test_pickling() . . . pass
running ._test_prod() . . . pass
running ._test_some_elements() . . . pass
Got:
running ._test_an_element() . . . pass
running ._test_associativity() . . . pass
running ._test_cardinality() . . . pass
running ._test_category() . . . pass
running ._test_elements() . . .
Running the test suite of self.an_element()
running ._test_category() . . . pass
running ._test_eq() . . . pass
running ._test_not_implemented_methods() . . . pass
running ._test_pickling() . . . pass
pass
running ._test_elements_eq_reflexive() . . . pass
running ._test_elements_eq_symmetric() . . . pass
running ._test_elements_eq_transitive() . . . pass
running ._test_elements_neq() . . . pass
running ._test_eq() . . . pass
running ._test_inverse() . . . pass
running ._test_not_implemented_methods() . . . pass
running ._test_one() . . . pass
running ._test_pickling() . . . pass
running ._test_prod() . . . pass
running ._test_some_elements() . . . pass
**********************************************************************
1 item had failures:
3 of 19 in sage.rings.asymptotic.growth_group.GrowthGroupFactory
1 test skipped
[615 tests, 3 failures, 9.96 s]
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/19399#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.