#12911: fix failing ipython test in tests/cmdline
--------------------------+-------------------------------------------------
   Reporter:  jhpalmieri  |             Owner:  jason        
       Type:  defect      |            Status:  new          
   Priority:  major       |         Milestone:  sage-5.1     
  Component:  misc        |          Keywords:  ipython      
Work issues:              |   Report Upstream:  N/A          
  Reviewers:              |           Authors:  John Palmieri
  Merged in:              |      Dependencies:               
   Stopgaps:              |  
--------------------------+-------------------------------------------------
 The test
 {{{
         sage: (out, err, ret) = test_executable(["sage", "--ipython"],
 "\n3**33\n")
         sage: out.find("5559060566555523") >= 0
         True
 }}}
 fails if people have installed a newer version of ipython, which leaves
 incompatible files in `~/ipython/`. We might consider setting `IPYTHONDIR`
 to `$DOT_SAGE/ipython/` in `sage-env`, but the simplest fix seems to be to
 do this right before running the test.

 Test this by running `sage --ipython` to create config files in
 `~/ipython/`. Then edit `~/ipython/ipy_user_conf.py` to (for example) make
 it invalid Python, so it prints an error when you start `sage --ipython`.
 Then doctest the file `cmdline.py` before and after applying the patch.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12911>
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