#9925: Doctest error in sage/graphs/graph.py
-----------------------------+----------------------------------------------
 Reporter:  mpatel           |         Owner:  mvngu            
     Type:  defect           |        Status:  closed           
 Priority:  major            |     Milestone:  sage-4.6         
Component:  doctest          |    Resolution:  fixed            
 Keywords:                   |        Author:  Nathann Cohen    
 Upstream:  N/A              |      Reviewer:  Dmitrii Pasechnik
   Merged:  sage-4.6.alpha2  |   Work_issues:                   
-----------------------------+----------------------------------------------

Comment(by mpatel):

 I don't have time to apply the patches, but without them, the code:
 {{{
 #!python
 def example(verbose=False):
     try:
         g = graphs.RandomBipartite(10, 10, .5)
         g.is_even_hole_free() and not g.is_forest()
         if not g.is_forest():
             cycle = g.is_even_hole_free(certificate = True)
             if cycle.order() % 2 == 1:
                 print "Error !"
             if not cycle.is_isomorphic(graphs.CycleGraph(cycle.order())):
                 print "Error !"
         error = False
     except RuntimeError as exc:
         error = True
         if verbose:
             print exc
     return error

 def runner(n=1000):
     fail = 0
     for i in xrange(n):
         fail += example()
     return fail

 runner()
 }}}
 gives 20 or so failures.  Could you check your patches against this or a
 similar statistical diagnostic?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9925#comment:26>
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.

Reply via email to