# HG changeset patch
# User Jeroen Demeyer <jdemeyer@cage.ugent.be>
# Date 1359104531 3600
# Node ID 1312cd158f6d913a49ef45e0f2d9089397590dda
# Parent 4971bdbe26e2161b7fb444a0e789bc3f7ffbe8bb
Do not set IPYTHONDIR in cmdline doctest
diff git a/sage/tests/cmdline.py b/sage/tests/cmdline.py
a

b


368  368  sage: ret 
369  369  42 
370  370  
371   When testing IPython, use Sage's ipython directory, to avoid 
372   incompatibilities for config files among different versions of 
373   IPython. :: 
374   
375   sage: os.environ['IPYTHONDIR'] = os.path.join(os.environ['DOT_SAGE'], 'ipython') 
376  371  sage: (out, err, ret) = test_executable(["sage", "ipython"], "\n3**33\n") 
377  372  sage: out.find("5559060566555523") >= 0 
378  373  True 
… 
… 

449  444  sage: ret 
450  445  0 
451  446  
452   Check that ``sagemake_relative`` did its job. We test it on the 
453   ``ipython`` script:: 
 447  Check that ``sagelocation`` did its job in making Python scripts 
 448  relative. We test it on the ``ipython`` script:: 
454  449  
455  450  sage: open(os.path.join(SAGE_ROOT, "local", "bin", "ipython")).readline() 
456  451  '#!/usr/bin/env python\n' 