#9970: Flaky doctest in sage/interfaces/r.py
-----------------------+----------------------------------------------------
   Reporter:  mpatel   |       Owner:  mvngu
       Type:  defect   |      Status:  new  
   Priority:  major    |   Milestone:       
  Component:  doctest  |    Keywords:       
     Author:           |    Upstream:  N/A  
   Reviewer:           |      Merged:       
Work_issues:           |  
-----------------------+----------------------------------------------------

Comment(by kcrisman):

 That's very interesting, thanks for pointing it out.  Since the
 `r.chdir()` is a pretty recent addition, it's not surprising there are
 unusual bugs with this.  I get the same behavior on Mac OS X 10.4, so this
 is not platform dependent, unsurprisingly.

  I am wondering whether it is simply that the directory names are
 preparsed or something with all those `Integer` things - maybe these 13-20
 out of 1000 are the ones that have numeric characters in the alphanumeric
 string?.  Though `/tmp/tmp0Py04L` only has the `04` in `Integer`, not the
 first `0`.  Also, I get

 {{{
 /tmp/tmpooH_dP [1] "/private/tmp/tmpooH_dP" /private/tmp/tmpooH_dP
 /tmp/tmpLPmXNF [1] "/private/tmp/tmpLPmXNF" /private/tmp/tmpLPmXNF
 /tmp/tmpH7BqRp [1] "/private/tmp/tmpH7BqRp" /private/tmp/tmpH7BqRp
 /tmp/tmpmV9yGJ [1] "/private/tmp/tmpmV9yGJ" /private/tmp/tmpmV9yGJ
 /tmp/tmpZig4LH [1] "/private/tmp/tmpZig4LH" /private/tmp/tmpZigInteger(4)H
 }}}
 in printing out the first ones until I get a failure (change the `if` loop
 to a `while` loop, basically), and a second time
 {{{
 /tmp/tmp2Ny1fm [1] "/private/tmp/tmp2Ny1fm" /private/tmp/tmp2Ny1fm
 /tmp/tmpY6qCbW [1] "/private/tmp/tmpY6qCbW" /private/tmp/tmpY6qCbW
 /tmp/tmpQWhSyG [1] "/private/tmp/tmpQWhSyG" /private/tmp/tmpQWhSyG
 /tmp/tmpJnST6Z [1] "/private/tmp/tmpJnST6Z" /private/tmp/tmpJnST6Z
 /tmp/tmpiP3g5g [1] "/private/tmp/tmpiP3g5g" /private/tmp/tmpiP3g5g
 /tmp/tmpBo_DwU [1] "/private/tmp/tmpBo_DwU" /private/tmp/tmpBo_DwU
 /tmp/tmp0O2kjX [1] "/private/tmp/tmp0O2kjX" /private/tmp/tmp0O2kjX
 /tmp/tmpJzFFFs [1] "/private/tmp/tmpJzFFFs" /private/tmp/tmpJzFFFs
 /tmp/tmpF3eRCC [1] "/private/tmp/tmpF3eRCC" /private/tmp/tmpF3eRCC
 /tmp/tmp3Vd1Lg [1] "/private/tmp/tmp3Vd1Lg" /private/tmp/tmp3VdInteger(1)g
 }}}
 so that can't be the issue, at least not by itself.  The position of the
 integer seems irrelevant as well.

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