#5806: Sage 3.4.1.rc3: failing test "devel/sage/sage/misc/sagedoc.py"
---------------------+------------------------------------------------------
Reporter: jsp | Owner: cwitty
Type: defect | Status: new
Priority: blocker | Milestone: sage-3.4.1
Component: misc | Keywords:
---------------------+------------------------------------------------------
Comment(by mpatel):
On the "fetch" tests: I'm not sure why, but the problem seems to be
os.popen, which is deprecated in favor of the subprocess module:
http://docs.python.org/library/subprocess.html
Here's a potential fix:
At the top of `sagedoc.py` add
{{{
from subprocess import Popen, PIPE
}}}
Then replace
{{{
r = os.popen(cmd).read()
}}}
with
{{{
r = Popen(cmd, shell=True, stdout=PIPE).communicate()[0]
}}}
There's still an issue with `\n`'s, though.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5806#comment:14>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---