#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: |
-----------------------+----------------------------------------------------
[http://groups.google.com/group/sage-
release/browse_thread/thread/01a01378099b9d5e/3fe4b83c4c612663#3fe4b83c4c612663
Dima Pasechnik reports on sage-release]:
{{{
Builds and tests OK on Linux amd64 (Debian unstable). Got one test
failure:
sage -t "devel/sage/sage/interfaces/r.py"
**********************************************************************
File
"/usr/local/src/sage/sage-4.6.alpha1/devel/sage/sage/interfaces/r.py",
line 1128:
sage: tmpdir in sageobj(r.getwd())
Expected:
True
Got:
False
that however would not repeat if I tested again...
}}}
I've also seen this error, on occasion. The test lines are
{{{
#!python
sage: import tempfile
sage: tmpdir = tempfile.mkdtemp()
sage: r.chdir(tmpdir)
sage: tmpdir in sageobj(r.getwd())
True
}}}
On sage.math, I get
{{{
#!python
sage: import tempfile
sage:
sage: fail = 0
sage: for i in xrange(1000):
....: tmpdir = tempfile.mkdtemp()
....: r.chdir(tmpdir)
....: if tmpdir not in sageobj(r.getwd()):
....: fail += 1
....:
sage: print fail
13
}}}
for example.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9970>
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.