#4393: [with patch; positive review] Sage 3.1.4: magma related optional doctest
failure in sage/structure/element.pyx
------------------------------------+------------------------
Reporter: mabshoff | Owner: was
Type: defect | Status: closed
Priority: major | Milestone: sage-3.2
Component: doctest coverage | Resolution: fixed
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
------------------------------------+------------------------
Changes (by chapoton):
* upstream: => N/A
Old description:
> {{{
> mabshoff@iras:~/build-3.2.a1/sage-3.2.alpha1-iras> ./sage -t -long
> -optional devel/sage/sage/structure/element.pyx
> sage -t -long -optional devel/sage/sage/structure/element.pyx
> **********************************************************************
> File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/element.py",
> line 1566:
> sage: mv = magma(v); mv # optional
> Exception raised:
> Traceback (most recent call last):
> File
> "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py",
> line 1228, in __run
> compileflags, 1) in test.globs
> File "<doctest __main__.example_58[3]>", line 1, in <module>
> mv = magma(v); mv # optional###line 1566:
> sage: mv = magma(v); mv # optional
> File
> "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
> /site-packages/sage/interfaces/magma.py", line 509, in __call__
> return Expect.__call__(self, x)
> File
> "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
> /site-packages/sage/interfaces/expect.py", line 967, in __call__
> return self._coerce_from_special_method(x)
> File
> "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
> /site-packages/sage/interfaces/expect.py", line 993, in
> _coerce_from_special_method
> return self(x._interface_init_())
> File
> "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
> /site-packages/sage/interfaces/magma.py", line 509, in __call__
> return Expect.__call__(self, x)
> File
> "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
> /site-packages/sage/interfaces/expect.py", line 965, in __call__
> return cls(self, x, name=name)
> File
> "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
> /site-packages/sage/interfaces/expect.py", line 1293, in __init__
> raise TypeError, x
> TypeError: Error evaluating Magma code.
> IN:
> [1] := (1, 2, 3);
> OUT:
> >> _sage_[1] := (1, 2, 3);
> ^
> Runtime error in elt< ... >: No permutation group context in which to
> create cycle
>
> **********************************************************************
> File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/element.py",
> line 1568:
> sage: mv.Type() # optional
> Exception raised:
> Traceback (most recent call last):
> File
> "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py",
> line 1228, in __run
> compileflags, 1) in test.globs
> File "<doctest __main__.example_58[4]>", line 1, in <module>
> mv.Type() # optional###line 1568:
> sage: mv.Type() # optional
> NameError: name 'mv' is not defined
> **********************************************************************
> File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/element.py",
> line 1570:
> sage: mv.Parent() # optional
> Exception raised:
> Traceback (most recent call last):
> File
> "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py",
> line 1228, in __run
> compileflags, 1) in test.globs
> File "<doctest __main__.example_58[5]>", line 1, in <module>
> mv.Parent() # optional###line 1570:
> sage: mv.Parent() # optional
> NameError: name 'mv' is not defined
> **********************************************************************
> File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/element.py",
> line 1574:
> sage: mv = magma(v); mv # optional
> Exception raised:
> Traceback (most recent call last):
> File
> "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py",
> line 1228, in __run
> compileflags, 1) in test.globs
> File "<doctest __main__.example_58[7]>", line 1, in <module>
> mv = magma(v); mv # optional###line 1574:
> sage: mv = magma(v); mv # optional
> File
> "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
> /site-packages/sage/interfaces/magma.py", line 509, in __call__
> return Expect.__call__(self, x)
> File
> "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
> /site-packages/sage/interfaces/expect.py", line 967, in __call__
> return self._coerce_from_special_method(x)
> File
> "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
> /site-packages/sage/interfaces/expect.py", line 993, in
> _coerce_from_special_method
> return self(x._interface_init_())
> File
> "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
> /site-packages/sage/interfaces/magma.py", line 509, in __call__
> return Expect.__call__(self, x)
> File
> "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
> /site-packages/sage/interfaces/expect.py", line 965, in __call__
> return cls(self, x, name=name)
> File
> "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
> /site-packages/sage/interfaces/expect.py", line 1293, in __init__
> raise TypeError, x
> TypeError: Error evaluating Magma code.
> IN:
> [2] := (1/2, 3/4, 5/6);
> OUT:
> >> _sage_[2] := (1/2, 3/4, 5/6);
> ^
> Runtime error in elt< ... >: Bad arguments
>
> **********************************************************************
> File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/element.py",
> line 1576:
> sage: mv.Type() # optional
> Exception raised:
> Traceback (most recent call last):
> File
> "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py",
> line 1228, in __run
> compileflags, 1) in test.globs
> File "<doctest __main__.example_58[8]>", line 1, in <module>
> mv.Type() # optional###line 1576:
> sage: mv.Type() # optional
> NameError: name 'mv' is not defined
> **********************************************************************
> File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/element.py",
> line 1578:
> sage: mv.Parent() # optional
> Exception raised:
> Traceback (most recent call last):
> File
> "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py",
> line 1228, in __run
> compileflags, 1) in test.globs
> File "<doctest __main__.example_58[9]>", line 1, in <module>
> mv.Parent() # optional###line 1578:
> sage: mv.Parent() # optional
> NameError: name 'mv' is not defined
> **********************************************************************
> 1 items had failures:
> 6 of 10 in __main__.example_58
> ***Test Failed*** 6 failures.
> For whitespace errors, see the file
> /home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/.doctest_element.py
> [14.7 s]
> exit code: 1024
> }}}
New description:
{{{
mabshoff@iras:~/build-3.2.a1/sage-3.2.alpha1-iras> ./sage -t -long
-optional devel/sage/sage/structure/element.pyx
sage -t -long -optional devel/sage/sage/structure/element.pyx
**********************************************************************
File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/element.py",
line 1566:
sage: mv = magma(v); mv # optional
Exception raised:
Traceback (most recent call last):
File
"/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py",
line 1228, in __run
compileflags, 1) in test.globs
File "<doctest __main__.example_58[3]>", line 1, in <module>
mv = magma(v); mv # optional###line 1566:
sage: mv = magma(v); mv # optional
File
"/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
/site-packages/sage/interfaces/magma.py", line 509, in __call__
return Expect.__call__(self, x)
File
"/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
/site-packages/sage/interfaces/expect.py", line 967, in __call__
return self._coerce_from_special_method(x)
File
"/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
/site-packages/sage/interfaces/expect.py", line 993, in
_coerce_from_special_method
return self(x._interface_init_())
File
"/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
/site-packages/sage/interfaces/magma.py", line 509, in __call__
return Expect.__call__(self, x)
File
"/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
/site-packages/sage/interfaces/expect.py", line 965, in __call__
return cls(self, x, name=name)
File
"/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
/site-packages/sage/interfaces/expect.py", line 1293, in __init__
raise TypeError, x
TypeError: Error evaluating Magma code.
IN:
[1] := (1, 2, 3);
OUT:
>> _sage_[1] := (1, 2, 3);
^
Runtime error in elt< ... >: No permutation group context in which to
create cycle
**********************************************************************
File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/element.py",
line 1568:
sage: mv.Type() # optional
Exception raised:
Traceback (most recent call last):
File
"/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py",
line 1228, in __run
compileflags, 1) in test.globs
File "<doctest __main__.example_58[4]>", line 1, in <module>
mv.Type() # optional###line 1568:
sage: mv.Type() # optional
NameError: name 'mv' is not defined
**********************************************************************
File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/element.py",
line 1570:
sage: mv.Parent() # optional
Exception raised:
Traceback (most recent call last):
File
"/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py",
line 1228, in __run
compileflags, 1) in test.globs
File "<doctest __main__.example_58[5]>", line 1, in <module>
mv.Parent() # optional###line 1570:
sage: mv.Parent() # optional
NameError: name 'mv' is not defined
**********************************************************************
File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/element.py",
line 1574:
sage: mv = magma(v); mv # optional
Exception raised:
Traceback (most recent call last):
File
"/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py",
line 1228, in __run
compileflags, 1) in test.globs
File "<doctest __main__.example_58[7]>", line 1, in <module>
mv = magma(v); mv # optional###line 1574:
sage: mv = magma(v); mv # optional
File
"/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
/site-packages/sage/interfaces/magma.py", line 509, in __call__
return Expect.__call__(self, x)
File
"/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
/site-packages/sage/interfaces/expect.py", line 967, in __call__
return self._coerce_from_special_method(x)
File
"/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
/site-packages/sage/interfaces/expect.py", line 993, in
_coerce_from_special_method
return self(x._interface_init_())
File
"/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
/site-packages/sage/interfaces/magma.py", line 509, in __call__
return Expect.__call__(self, x)
File
"/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
/site-packages/sage/interfaces/expect.py", line 965, in __call__
return cls(self, x, name=name)
File
"/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5
/site-packages/sage/interfaces/expect.py", line 1293, in __init__
raise TypeError, x
TypeError: Error evaluating Magma code.
IN:
[2] := (1/2, 3/4, 5/6);
OUT:
>> _sage_[2] := (1/2, 3/4, 5/6);
^
Runtime error in elt< ... >: Bad arguments
**********************************************************************
File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/element.py",
line 1576:
sage: mv.Type() # optional
Exception raised:
Traceback (most recent call last):
File
"/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py",
line 1228, in __run
compileflags, 1) in test.globs
File "<doctest __main__.example_58[8]>", line 1, in <module>
mv.Type() # optional###line 1576:
sage: mv.Type() # optional
NameError: name 'mv' is not defined
**********************************************************************
File "/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/element.py",
line 1578:
sage: mv.Parent() # optional
Exception raised:
Traceback (most recent call last):
File
"/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/local/lib/python2.5/doctest.py",
line 1228, in __run
compileflags, 1) in test.globs
File "<doctest __main__.example_58[9]>", line 1, in <module>
mv.Parent() # optional###line 1578:
sage: mv.Parent() # optional
NameError: name 'mv' is not defined
**********************************************************************
1 items had failures:
6 of 10 in __main__.example_58
***Test Failed*** 6 failures.
For whitespace errors, see the file
/home/mabshoff/build-3.2.a1/sage-3.2.alpha1-iras/tmp/.doctest_element.py
[14.7 s]
exit code: 1024
}}}
--
--
Ticket URL: <http://trac.sagemath.org/ticket/4393#comment:5>
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.