Opened 13 years ago

Closed 12 years ago

#6328 closed defect (fixed)

[with patch, positive review] optional doctest failure -- bugs in the graph theory section of constructions guide

Reported by: was Owned by: tbd
Priority: major Milestone: sage-4.1.2
Component: packages: optional Keywords:
Cc: Merged in: Sage 4.1.2.alpha2
Authors: David Joyner Reviewers: Mike Hansen
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

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.

Attachments (1)

trac_6328.patch (6.2 KB) - added by wdj 13 years ago.
applies to 4.0.2.rc1

Download all attachments as: .zip

Change History (5)

comment:1 Changed 13 years ago by wdj

My feeling is that this entire section on using Grape is a waste of electrons because of Sage's massive improvments in this area of graph theory since this was first written. Unless I hear a complaint soon, I will delete the whole thing.

Changed 13 years ago by wdj

applies to 4.0.2.rc1

comment:2 Changed 13 years ago by wdj

  • Summary changed from optional doctest failure -- bugs in the graph theory section of constructions guide to [with patch, needs review] optional doctest failure -- bugs in the graph theory section of constructions guide

Patch applies fine to 4.0.2.rc1 and passes sage -tp 1 SAGE_ROOT/devel/sage/doc/en/constructions/. Also the builds sage -docbuild constructions html (resp., pdf) went fine and sage -t -long --optional devel/sage/doc/en/constructions/graph_theory.rst passes.

comment:3 Changed 12 years ago by mhansen

  • Summary changed from [with patch, needs review] optional doctest failure -- bugs in the graph theory section of constructions guide to [with patch, positive review] optional doctest failure -- bugs in the graph theory section of constructions guide

Looks good to me.

comment:4 Changed 12 years ago by mvngu

  • Authors set to David Joyner
  • Merged in set to Sage 4.1.2.alpha2
  • Resolution set to fixed
  • Reviewers set to Mike Hansen
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.