#10081: Another doctest failure in sage/graphs/graphs.py
-----------------------+----------------------------------------------------
Reporter: mpatel | Owner: mvngu
Type: defect | Status: positive_review
Priority: blocker | Milestone: sage-4.6
Component: doctest | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------+----------------------------------------------------
Changes (by mpatel):
* status: needs_review => positive_review
Old description:
> Karl-Dieter Crisman reported this error on
> [http://groups.google.com/group/sage-
> release/browse_thread/thread/6bb037c1f4a1ace9/baa93cd5c1dc489f#baa93cd5c1dc489f
> sage-release]:
> {{{
> #!python
> On OS X 10.4 PPC, I get a variant on #10042 (I put this on the ticket)
> and the toric divisor one, and a known Maxima timeout due to tab-
> completion. I also got the following non-repeating failure:
>
> File
> "/Users/student/Desktop/sage-4.6.alpha2/devel/sage/sage/graphs/graph.py",
> line 1346:
> sage: if not g.is_forest():
> cycle = g.is_even_hole_free(certificate = True)
> if cycle.order() % Integer(2) == Integer(1):
> print "Error !"
> if not cycle.is_isomorphic(
> graphs.CycleGraph(cycle.order())):
> print "Error !"
> Exception raised:
> Traceback (most recent call last):
> File
> "/Users/student/Desktop/sage-4.6.alpha2/local/bin/ncadoctest.py", line
> 1231, in run_one_test
> self.run_one_example(test, example, filename, compileflags)
> File
> "/Users/student/Desktop/sage-4.6.alpha2/local/bin/sagedoctest.py", line
> 38, in run_one_example
> OrigDocTestRunner.run_one_example(self, test, example, filename,
> compileflags)
> File
> "/Users/student/Desktop/sage-4.6.alpha2/local/bin/ncadoctest.py", line
> 1172, in run_one_example
> compileflags, 1) in test.globs
> File "<doctest __main__.example_6[8]>", line 1, in <module>
> if not g.is_forest():###line 1346:
> sage: if not g.is_forest():
> File "/Users/student/Desktop/sage-4.6.alpha2/local/lib/python/site-
> packages/sage/graphs/generic_graph.py", line 1823, in is_forest
> for g in self.connected_components_subgraphs():
> File "/Users/student/Desktop/sage-4.6.alpha2/local/lib/python/site-
> packages/sage/graphs/generic_graph.py", line 3136, in
> connected_components_subgraphs
> list.append(self.subgraph(c, inplace=False))
> File "/Users/student/Desktop/sage-4.6.alpha2/local/lib/python/site-
> packages/sage/graphs/generic_graph.py", line 8170, in subgraph
> edge_property=edge_property)
> File "/Users/student/Desktop/sage-4.6.alpha2/local/lib/python/site-
> packages/sage/graphs/generic_graph.py", line 8279, in _subgraph_by_adding
> G.add_vertices(vertices)
> File "/Users/student/Desktop/sage-4.6.alpha2/local/lib/python/site-
> packages/sage/graphs/bipartite_graph.py", line 534, in add_vertices
> raise RuntimeError("Partition must be specified (e.g.
> left=True).")
> RuntimeError: Partition must be specified (e.g. left=True).
> }}}
>
> This is a followup to #9925.
New description:
Karl-Dieter Crisman reported this error on [http://groups.google.com/group
/sage-
release/browse_thread/thread/6bb037c1f4a1ace9/baa93cd5c1dc489f#baa93cd5c1dc489f
sage-release]:
{{{
#!python
On OS X 10.4 PPC, I get a variant on #10042 (I put this on the ticket)
and the toric divisor one, and a known Maxima timeout due to tab-
completion. I also got the following non-repeating failure:
File
"/Users/student/Desktop/sage-4.6.alpha2/devel/sage/sage/graphs/graph.py",
line 1346:
sage: if not g.is_forest():
cycle = g.is_even_hole_free(certificate = True)
if cycle.order() % Integer(2) == Integer(1):
print "Error !"
if not cycle.is_isomorphic(
graphs.CycleGraph(cycle.order())):
print "Error !"
Exception raised:
Traceback (most recent call last):
File
"/Users/student/Desktop/sage-4.6.alpha2/local/bin/ncadoctest.py", line
1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File
"/Users/student/Desktop/sage-4.6.alpha2/local/bin/sagedoctest.py", line
38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File
"/Users/student/Desktop/sage-4.6.alpha2/local/bin/ncadoctest.py", line
1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_6[8]>", line 1, in <module>
if not g.is_forest():###line 1346:
sage: if not g.is_forest():
File "/Users/student/Desktop/sage-4.6.alpha2/local/lib/python/site-
packages/sage/graphs/generic_graph.py", line 1823, in is_forest
for g in self.connected_components_subgraphs():
File "/Users/student/Desktop/sage-4.6.alpha2/local/lib/python/site-
packages/sage/graphs/generic_graph.py", line 3136, in
connected_components_subgraphs
list.append(self.subgraph(c, inplace=False))
File "/Users/student/Desktop/sage-4.6.alpha2/local/lib/python/site-
packages/sage/graphs/generic_graph.py", line 8170, in subgraph
edge_property=edge_property)
File "/Users/student/Desktop/sage-4.6.alpha2/local/lib/python/site-
packages/sage/graphs/generic_graph.py", line 8279, in _subgraph_by_adding
G.add_vertices(vertices)
File "/Users/student/Desktop/sage-4.6.alpha2/local/lib/python/site-
packages/sage/graphs/bipartite_graph.py", line 534, in add_vertices
raise RuntimeError("Partition must be specified (e.g.
left=True).")
RuntimeError: Partition must be specified (e.g. left=True).
}}}
This is a followup to #9925.
== Release Manager ==
Apply the patch at #9422.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10081#comment:7>
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 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.