##// END OF EJS Templates
Revert "Option for testing local copy, rather than global. Testing needs more work."...
Thomas Kluyver -
Show More
@@ -48,9 +48,6 b' from IPython.utils.io import temp_pyfile'
48
48
49 from . import decorators as dec
49 from . import decorators as dec
50
50
51 # Set to True to test ipython.py in the local directory.
52 LOCALTEST = False
53
54 #-----------------------------------------------------------------------------
51 #-----------------------------------------------------------------------------
55 # Globals
52 # Globals
56 #-----------------------------------------------------------------------------
53 #-----------------------------------------------------------------------------
@@ -203,10 +200,7 b' def ipexec(fname, options=None):'
203 _ip = get_ipython()
200 _ip = get_ipython()
204 test_dir = os.path.dirname(__file__)
201 test_dir = os.path.dirname(__file__)
205
202
206 if LOCALTEST:
203 ipython_cmd = find_cmd('ipython')
207 ipython_cmd = os.path.join(os.getcwd(),'ipython.py')
208 else:
209 ipython_cmd = find_cmd('ipython')
210 # Absolute path for filename
204 # Absolute path for filename
211 full_fname = os.path.join(test_dir, fname)
205 full_fname = os.path.join(test_dir, fname)
212 full_cmd = '%s %s %s' % (ipython_cmd, cmdargs, full_fname)
206 full_cmd = '%s %s %s' % (ipython_cmd, cmdargs, full_fname)
General Comments 0
You need to be logged in to leave comments. Login now