#5155: Sage 3.3.a3: fix doctests that want write access to $SAGE_LOCAL
---------------------------+------------------------------------------------
Reporter: mabshoff | Owner: mabshoff
Type: defect | Status: needs_work
Priority: critical | Milestone: sage-4.6
Component: doctest | Keywords:
Author: Mike Hansen | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
Comment(by lftabera):
qepcad failures
sage -t -long "devel/sage/sage/interfaces/qepcad.py"
**********************************************************************
File "/opt/SAGE/sage/devel/sage/sage/interfaces/qepcad.py", line 638:
sage: _rewrite_qepcadrc()
Exception raised:
Traceback (most recent call last):
File "/opt/SAGE/sage/local/bin/ncadoctest.py", line 1231, in
run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/opt/SAGE/sage/local/bin/sagedoctest.py", line 38, in
run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/opt/SAGE/sage/local/bin/ncadoctest.py", line 1172, in
run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_3[3]>", line 1, in <module>
_rewrite_qepcadrc()###line 638:
sage: _rewrite_qepcadrc()
File "/opt/SAGE/sage/local/lib/python/site-
packages/sage/interfaces/qepcad.py", line 660, in _rewrite_qepcadrc
open(fn, 'w').write(text)
IOError: [Errno 13] Permission denied:
'/opt/SAGE/sage/local//default.qepcadrc'
**********************************************************************
File "/opt/SAGE/sage/devel/sage/sage/interfaces/qepcad.py", line 689:
sage: Qepcad_expect(memcells=100000, logfile=sys.stdout)
Exception raised:
Traceback (most recent call last):
File "/opt/SAGE/sage/local/bin/ncadoctest.py", line 1231, in
run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/opt/SAGE/sage/local/bin/sagedoctest.py", line 38, in
run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/opt/SAGE/sage/local/bin/ncadoctest.py", line 1172, in
run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_6[3]>", line 1, in <module>
Qepcad_expect(memcells=Integer(100000), logfile=sys.stdout)###line
689:
sage: Qepcad_expect(memcells=100000, logfile=sys.stdout)
File "/opt/SAGE/sage/local/lib/python/site-
packages/sage/interfaces/qepcad.py", line 692, in __init__
_rewrite_qepcadrc()
File "/opt/SAGE/sage/local/lib/python/site-
packages/sage/interfaces/qepcad.py", line 660, in _rewrite_qepcadrc
open(fn, 'w').write(text)
IOError: [Errno 13] Permission denied:
'/opt/SAGE/sage/local//default.qepcadrc'
**********************************************************************
2 items had failures:
1 of 6 in __main__.example_3
1 of 4 in __main__.example_6
***Test Failed*** 2 failures.
For whitespace errors, see the file
/home/usuario/.sage//tmp/.doctest_qepcad.py
[1.9 s]
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5155#comment:4>
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.