#12021: doctest failure insage_object.pyx when test run as root
-----------------------+----------------------------------------------------
Reporter: emil | Owner: mvngu
Type: defect | Status: new
Priority: minor | Milestone: sage-4.8
Component: doctest | Keywords: doctest, sage_object, root
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
-----------------------+----------------------------------------------------
{{{
sage -t -force_lib "devel/sage/sage/structure/sage_object.pyx"
*************************************************************
File "/mnt/sda6/COMPILE/sage-4.7.2/devel/sage/sage/structure/
sage_object.pyx", line 1042:
sage: sage.structure.sage_object.picklejar(1, dir + '/noaccess')
Expected:
Traceback (most recent call last):
...
OSError: ...
Got nothing
*******************************************************************
}}}
the doctest creates a directory and sets permissions to 0000. if running
as root no error is thrown when accessing this directory, hence the
failure of the doctest.
Proposed fix: check if running the test as root or flag example as no test
[
http://groups.google.com/group/sage-
devel/browse_thread/thread/e1886d5ba5ade945]
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12021>
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.