#6328: optional doctest failure -- bugs in the graph theory section of
constructions guide
-------------------------------+--------------------------------------------
Reporter: was | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-4.0.3
Component: optional packages | Keywords:
Reviewer: | Author:
Merged: |
-------------------------------+--------------------------------------------
{{{
sage -t -long --optional devel/sage/doc/en/constructions/graph_theory.rst
**********************************************************************
File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-
main/doc/en/constructions/graph_theory.rst", line 141:
sage: print gap.eval("Gamma := Graph( G, [1..3], OnPoints,
function(x,y) return A[x][y] = 1; end,true )") # optional gap package
Exception raised:
Traceback (most recent call last):
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/sagedoctest.py", line
38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_5[4]>", line 1, in <module>
print gap.eval("Gamma := Graph( G, [1..3], OnPoints, function(x,y)
return A[x][y] = 1; end,true )") # optional gap package###line 141:
sage: print gap.eval("Gamma := Graph( G, [1..3], OnPoints,
function(x,y) return A[x][y] = 1; end,true )") # optional gap package
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/gap.py", line 480, in eval
result = Expect.eval(self, input_line, **kwds)
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/expect.py", line 975, in eval
return '\n'.join([self._eval_line(L, **kwds) for L in
code.split('\n') if L != ''])
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/gap.py", line 722, in _eval_line
raise RuntimeError, message
RuntimeError: Gap produced error output
Variable: 'Gamma' is read only
executing Gamma := Graph( G, [1..3], OnPoints, function(x,y) return
A[x][y] = 1; end,true );
**********************************************************************
File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-
main/doc/en/constructions/graph_theory.rst", line 145:
sage: print gap.eval("Adjacency(Gamma,1)") # optional gap
package
Exception raised:
Traceback (most recent call last):
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/sagedoctest.py", line
38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_5[5]>", line 1, in <module>
print gap.eval("Adjacency(Gamma,1)") # optional gap
package###line 145:
sage: print gap.eval("Adjacency(Gamma,1)") # optional gap
package
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/gap.py", line 480, in eval
result = Expect.eval(self, input_line, **kwds)
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/expect.py", line 975, in eval
return '\n'.join([self._eval_line(L, **kwds) for L in
code.split('\n') if L != ''])
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/gap.py", line 722, in _eval_line
raise RuntimeError, message
RuntimeError: Gap produced error output
Record Element: <rec> must be a record (not a function)
executing Adjacency(Gamma,1);
**********************************************************************
File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-
main/doc/en/constructions/graph_theory.rst", line 147:
sage: print gap.eval("Adjacency(Gamma,2)") # optional gap
package
Exception raised:
Traceback (most recent call last):
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/sagedoctest.py", line
38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_5[6]>", line 1, in <module>
print gap.eval("Adjacency(Gamma,2)") # optional gap
package###line 147:
sage: print gap.eval("Adjacency(Gamma,2)") # optional gap
package
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/gap.py", line 480, in eval
result = Expect.eval(self, input_line, **kwds)
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/expect.py", line 975, in eval
return '\n'.join([self._eval_line(L, **kwds) for L in
code.split('\n') if L != ''])
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/gap.py", line 722, in _eval_line
raise RuntimeError, message
RuntimeError: Gap produced error output
Record Element: <rec> must be a record (not a function)
executing Adjacency(Gamma,2);
**********************************************************************
File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-
main/doc/en/constructions/graph_theory.rst", line 149:
sage: print gap.eval("Adjacency(Gamma,3)") # optional gap
package
Exception raised:
Traceback (most recent call last):
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/sagedoctest.py", line
38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_5[7]>", line 1, in <module>
print gap.eval("Adjacency(Gamma,3)") # optional gap
package###line 149:
sage: print gap.eval("Adjacency(Gamma,3)") # optional gap
package
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/gap.py", line 480, in eval
result = Expect.eval(self, input_line, **kwds)
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/expect.py", line 975, in eval
return '\n'.join([self._eval_line(L, **kwds) for L in
code.split('\n') if L != ''])
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/gap.py", line 722, in _eval_line
raise RuntimeError, message
RuntimeError: Gap produced error output
Record Element: <rec> must be a record (not a function)
executing Adjacency(Gamma,3);
**********************************************************************
File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-
main/doc/en/constructions/graph_theory.rst", line 151:
sage: print gap.eval("IsEdge( Gamma, [ 1, 2 ] )") # optional gap
package
Exception raised:
Traceback (most recent call last):
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/sagedoctest.py", line
38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_5[8]>", line 1, in <module>
print gap.eval("IsEdge( Gamma, [ 1, 2 ] )") # optional gap
package###line 151:
sage: print gap.eval("IsEdge( Gamma, [ 1, 2 ] )") # optional gap
package
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/gap.py", line 480, in eval
result = Expect.eval(self, input_line, **kwds)
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/expect.py", line 975, in eval
return '\n'.join([self._eval_line(L, **kwds) for L in
code.split('\n') if L != ''])
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/gap.py", line 722, in _eval_line
raise RuntimeError, message
RuntimeError: Gap produced error output
Error, usage: IsEdge( <Graph>, <obj> )
executing IsEdge( Gamma, [ 1, 2 ] );
**********************************************************************
File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-
main/doc/en/constructions/graph_theory.rst", line 153:
sage: print gap.eval("Vertices( Gamma )") # optional gap
package
Exception raised:
Traceback (most recent call last):
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/sagedoctest.py", line
38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_5[9]>", line 1, in <module>
print gap.eval("Vertices( Gamma )") # optional gap
package###line 153:
sage: print gap.eval("Vertices( Gamma )") # optional gap
package
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/gap.py", line 480, in eval
result = Expect.eval(self, input_line, **kwds)
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/expect.py", line 975, in eval
return '\n'.join([self._eval_line(L, **kwds) for L in
code.split('\n') if L != ''])
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/gap.py", line 722, in _eval_line
raise RuntimeError, message
RuntimeError: Gap produced error output
Error, no 1st choice method found for `Vertices' on 1 arguments
executing Vertices( Gamma );
**********************************************************************
File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-
main/doc/en/constructions/graph_theory.rst", line 163:
sage: print gap.eval("Distance( Gamma, 1, 3 )") # optional gap
package
Exception raised:
Traceback (most recent call last):
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/sagedoctest.py", line
38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_6[2]>", line 1, in <module>
print gap.eval("Distance( Gamma, 1, 3 )") # optional gap
package###line 163:
sage: print gap.eval("Distance( Gamma, 1, 3 )") # optional gap
package
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/gap.py", line 480, in eval
result = Expect.eval(self, input_line, **kwds)
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/expect.py", line 975, in eval
return '\n'.join([self._eval_line(L, **kwds) for L in
code.split('\n') if L != ''])
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/gap.py", line 722, in _eval_line
raise RuntimeError, message
RuntimeError: Gap produced error output
Error, usage: Distance( <Graph>, <Int> or <List>, <Int> or <List> [,
<PermGrou\
p> ] )
executing Distance( Gamma, 1, 3 );
**********************************************************************
File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-
main/doc/en/constructions/graph_theory.rst", line 173:
sage: print gap.eval("Distance( Gamma, 1, 2 )") # optional gap
package
Exception raised:
Traceback (most recent call last):
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/sagedoctest.py", line
38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File
"/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line
1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_7[2]>", line 1, in <module>
print gap.eval("Distance( Gamma, 1, 2 )") # optional gap
package###line 173:
sage: print gap.eval("Distance( Gamma, 1, 2 )") # optional gap
package
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/gap.py", line 480, in eval
result = Expect.eval(self, input_line, **kwds)
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/expect.py", line 975, in eval
return '\n'.join([self._eval_line(L, **kwds) for L in
code.split('\n') if L != ''])
File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5
/site-packages/sage/interfaces/gap.py", line 722, in _eval_line
raise RuntimeError, message
RuntimeError: Gap produced error output
Error, usage: Distance( <Graph>, <Int> or <List>, <Int> or <List> [,
<PermGrou\
p> ] )
executing Distance( Gamma, 1, 2 );
**********************************************************************
3 items had failures:
6 of 10 in __main__.example_5
1 of 3 in __main__.example_6
1 of 3 in __main__.example_7
***Test Failed*** 8 failures.
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6328>
Sage <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---