File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33Needs to be run by nose (to make ipython session available).
44"""
55
6- # Standard library imports
76import os
87import sys
98import tempfile
109import types
1110
12- # Third-party imports
1311import nose .tools as nt
1412
15- # From our own code
13+ from IPython . platutils import find_cmd
1614from IPython .testing import decorators as dec
1715from IPython .testing import tools as tt
1816
@@ -67,7 +65,8 @@ def test_obj_del():
6765 """Test that object's __del__ methods are called on exit."""
6866 test_dir = os .path .dirname (__file__ )
6967 del_file = os .path .join (test_dir ,'obj_del.py' )
70- out = _ip .IP .getoutput ('ipython %s' % del_file )
68+ ipython_cmd = find_cmd ('ipython' )
69+ out = _ip .IP .getoutput ('%s %s' % (ipython_cmd , del_file ))
7170 nt .assert_equals (out ,'obj_del.py: object A deleted' )
7271
7372
You can’t perform that action at this time.
0 commit comments