Ticket #12719: 12719_ipython_test.patch

File 12719_ipython_test.patch, 1.2 KB (added by jdemeyer, 9 years ago)
  • sage/tests/cmdline.py

    # 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  
    368368        sage: ret
    369369        42
    370370
    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')
    376371        sage: (out, err, ret) = test_executable(["sage", "--ipython"], "\n3**33\n")
    377372        sage: out.find("5559060566555523") >= 0
    378373        True
     
    449444        sage: ret
    450445        0
    451446
    452     Check that ``sage-make_relative`` did its job.  We test it on the
    453     ``ipython`` script::
     447    Check that ``sage-location`` did its job in making Python scripts
     448    relative.  We test it on the ``ipython`` script::
    454449
    455450        sage: open(os.path.join(SAGE_ROOT, "local", "bin", "ipython")).readline()
    456451        '#!/usr/bin/env python\n'