#15910: Fix doctest in root_systems/coxeter_group.py when coxeter3 is install
-------------------------------------+-------------------------------------
Reporter: tscrim | Owner: tscrim
Type: defect | Status: needs_review
Priority: critical | Milestone: sage-6.2
Component: packages: | Resolution:
optional | Merged in:
Keywords: | Reviewers:
Authors: Travis Scrimshaw | Work issues:
Report Upstream: N/A | Commit:
Branch: | fa688d0e9303b18abb68ef54c238b186282cdbb4
public/combinat/fix_coxeter_group_test-15910| Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by aschilling):
Hi Travis,
With your fix, I get a lot of doctest failures (with coxeter3 installed)
{{{
sage -t coxeter_group.py
**********************************************************************
File "coxeter_group.py", line 59, in
sage.combinat.root_system.coxeter_group.CoxeterGroup
Failed example:
W = CoxeterGroup(["A",2])
Exception raised:
Traceback (most recent call last):
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 480, in _run
self.execute(example, compiled, test.globs)
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 839, in execute
exec compiled in globs
File "<doctest
sage.combinat.root_system.coxeter_group.CoxeterGroup[0]>", line 1, in
<module>
W = CoxeterGroup(["A",Integer(2)])
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/combinat/root_system/coxeter_group.py", line 157, in
CoxeterGroup
return CoxeterGroupAsPermutationGroup(cartan_type)
File "classcall_metaclass.pyx", line 330, in
sage.misc.classcall_metaclass.ClasscallMetaclass.__call__
(sage/misc/classcall_metaclass.c:1282)
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/combinat/root_system/coxeter_group.py", line 200, in
__classcall__
return super(CoxeterGroupAsPermutationGroup,
cls).__classcall__(cls, cartan_type)
File "cachefunc.pyx", line 1045, in
sage.misc.cachefunc.WeakCachedFunction.__call__
(sage/misc/cachefunc.c:6182)
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/structure/unique_representation.py", line 1021, in
__classcall__
instance = typecall(cls, *args, **options)
File "classcall_metaclass.pyx", line 518, in
sage.misc.classcall_metaclass.typecall
(sage/misc/classcall_metaclass.c:1665)
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/combinat/root_system/coxeter_group.py", line 222, in
__init__
N = self._gap_group.__getattr__("N").sage()
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/interfaces/interface.py", line 884, in __getattr__
P = self._check_valid()
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/interfaces/expect.py", line 1321, in _check_valid
raise ValueError, "The %s session in which this object was defined
is no longer running."%P.name()
ValueError: The gap3 session in which this object was defined is no
longer running.
**********************************************************************
File "coxeter_group.py", line 72, in
sage.combinat.root_system.coxeter_group.CoxeterGroup
Failed example:
if not is_chevie_available(): W
Expected:
Coxeter group over Universal Cyclotomic Field with Coxeter matrix:
[1 3 2]
[3 1 5]
[2 5 1]
Got:
<BLANKLINE>
**********************************************************************
File "coxeter_group.py", line 293, in
sage.combinat.root_system.coxeter_group.CoxeterGroupAsPermutationGroup.Element.has_descent
Failed example:
W = CoxeterGroup(["A",3])
Exception raised:
Traceback (most recent call last):
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 480, in _run
self.execute(example, compiled, test.globs)
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 839, in execute
exec compiled in globs
File "<doctest
sage.combinat.root_system.coxeter_group.CoxeterGroupAsPermutationGroup.Element.has_descent[0]>",
line 1, in <module>
W = CoxeterGroup(["A",Integer(3)])
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/combinat/root_system/coxeter_group.py", line 157, in
CoxeterGroup
return CoxeterGroupAsPermutationGroup(cartan_type)
File "classcall_metaclass.pyx", line 330, in
sage.misc.classcall_metaclass.ClasscallMetaclass.__call__
(sage/misc/classcall_metaclass.c:1282)
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/combinat/root_system/coxeter_group.py", line 200, in
__classcall__
return super(CoxeterGroupAsPermutationGroup,
cls).__classcall__(cls, cartan_type)
File "cachefunc.pyx", line 1045, in
sage.misc.cachefunc.WeakCachedFunction.__call__
(sage/misc/cachefunc.c:6182)
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/structure/unique_representation.py", line 1021, in
__classcall__
instance = typecall(cls, *args, **options)
File "classcall_metaclass.pyx", line 518, in
sage.misc.classcall_metaclass.typecall
(sage/misc/classcall_metaclass.c:1665)
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/combinat/root_system/coxeter_group.py", line 222, in
__init__
N = self._gap_group.__getattr__("N").sage()
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/interfaces/interface.py", line 884, in __getattr__
P = self._check_valid()
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/interfaces/expect.py", line 1321, in _check_valid
raise ValueError, "The %s session in which this object was defined
is no longer running."%P.name()
ValueError: The gap3 session in which this object was defined is no
longer running.
**********************************************************************
File "coxeter_group.py", line 294, in
sage.combinat.root_system.coxeter_group.CoxeterGroupAsPermutationGroup.Element.has_descent
Failed example:
s = W.simple_reflections()
Exception raised:
Traceback (most recent call last):
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 480, in _run
self.execute(example, compiled, test.globs)
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 839, in execute
exec compiled in globs
File "<doctest
sage.combinat.root_system.coxeter_group.CoxeterGroupAsPermutationGroup.Element.has_descent[1]>",
line 1, in <module>
s = W.simple_reflections()
NameError: name 'W' is not defined
**********************************************************************
File "coxeter_group.py", line 295, in
sage.combinat.root_system.coxeter_group.CoxeterGroupAsPermutationGroup.Element.has_descent
Failed example:
w = s[1] * s[2] * s[3]
Exception raised:
Traceback (most recent call last):
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 480, in _run
self.execute(example, compiled, test.globs)
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 839, in execute
exec compiled in globs
File "<doctest
sage.combinat.root_system.coxeter_group.CoxeterGroupAsPermutationGroup.Element.has_descent[2]>",
line 1, in <module>
w = s[Integer(1)] * s[Integer(2)] * s[Integer(3)]
NameError: name 's' is not defined
**********************************************************************
File "coxeter_group.py", line 296, in
sage.combinat.root_system.coxeter_group.CoxeterGroupAsPermutationGroup.Element.has_descent
Failed example:
w.has_descent(3)
Exception raised:
Traceback (most recent call last):
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 480, in _run
self.execute(example, compiled, test.globs)
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 839, in execute
exec compiled in globs
File "<doctest
sage.combinat.root_system.coxeter_group.CoxeterGroupAsPermutationGroup.Element.has_descent[3]>",
line 1, in <module>
w.has_descent(Integer(3))
NameError: name 'w' is not defined
**********************************************************************
File "coxeter_group.py", line 298, in
sage.combinat.root_system.coxeter_group.CoxeterGroupAsPermutationGroup.Element.has_descent
Failed example:
[ w.has_descent(i) for i in [1,2,3] ]
Exception raised:
Traceback (most recent call last):
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 480, in _run
self.execute(example, compiled, test.globs)
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 839, in execute
exec compiled in globs
File "<doctest
sage.combinat.root_system.coxeter_group.CoxeterGroupAsPermutationGroup.Element.has_descent[4]>",
line 1, in <module>
[ w.has_descent(i) for i in
[Integer(1),Integer(2),Integer(3)] ]
NameError: name 'w' is not defined
**********************************************************************
File "coxeter_group.py", line 300, in
sage.combinat.root_system.coxeter_group.CoxeterGroupAsPermutationGroup.Element.has_descent
Failed example:
[ w.has_descent(i, side = 'left') for i in [1,2,3] ]
Exception raised:
Traceback (most recent call last):
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 480, in _run
self.execute(example, compiled, test.globs)
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 839, in execute
exec compiled in globs
File "<doctest
sage.combinat.root_system.coxeter_group.CoxeterGroupAsPermutationGroup.Element.has_descent[5]>",
line 1, in <module>
[ w.has_descent(i, side = 'left') for i in
[Integer(1),Integer(2),Integer(3)] ]
NameError: name 'w' is not defined
**********************************************************************
File "coxeter_group.py", line 302, in
sage.combinat.root_system.coxeter_group.CoxeterGroupAsPermutationGroup.Element.has_descent
Failed example:
[ w.has_descent(i, positive = True) for i in [1,2,3] ]
Exception raised:
Traceback (most recent call last):
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 480, in _run
self.execute(example, compiled, test.globs)
File "/Applications/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 839, in execute
exec compiled in globs
File "<doctest
sage.combinat.root_system.coxeter_group.CoxeterGroupAsPermutationGroup.Element.has_descent[6]>",
line 1, in <module>
[ w.has_descent(i, positive = True) for i in
[Integer(1),Integer(2),Integer(3)] ]
NameError: name 'w' is not defined
**********************************************************************
2 items had failures:
2 of 19 in sage.combinat.root_system.coxeter_group.CoxeterGroup
7 of 8 in
sage.combinat.root_system.coxeter_group.CoxeterGroupAsPermutationGroup.Element.has_descent
[30 tests, 9 failures, 68.77 s]
----------------------------------------------------------------------
sage -t coxeter_group.py # 9 doctests failed
----------------------------------------------------------------------
Total time for all tests: 70.1 seconds
cpu time: 7.6 seconds
cumulative wall time: 68.8 seconds
}}}
Best,
Anne
--
Ticket URL: <http://trac.sagemath.org/ticket/15910#comment:4>
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.