Show More
@@ -649,3 +649,6 b' def launch_new_instance():' | |||
|
649 | 649 | app = IPythonApp() |
|
650 | 650 | app.start() |
|
651 | 651 | |
|
652 | ||
|
653 | if __name__ == '__main__': | |
|
654 | launch_new_instance() |
@@ -17,6 +17,7 b' __test__ = {}' | |||
|
17 | 17 | #------------------------------------------------------------------------------- |
|
18 | 18 | # Imports |
|
19 | 19 | #------------------------------------------------------------------------------- |
|
20 | ||
|
20 | 21 | from IPython.kernel.core import error |
|
21 | 22 | |
|
22 | 23 | #------------------------------------------------------------------------------- |
@@ -203,5 +204,4 b' def collect_exceptions(rlist, method):' | |||
|
203 | 204 | raise CompositeError(msg, elist) |
|
204 | 205 | except CompositeError, e: |
|
205 | 206 | raise e |
|
206 | ||
|
207 | 207 |
@@ -70,12 +70,6 b' pjoin = path.join' | |||
|
70 | 70 | # Globals |
|
71 | 71 | #----------------------------------------------------------------------------- |
|
72 | 72 | |
|
73 | # By default, we assume IPython has been installed. But if the test suite is | |
|
74 | # being run from a source tree that has NOT been installed yet, this flag can | |
|
75 | # be set to False by the entry point scripts, to let us know that we must call | |
|
76 | # the source tree versions of the scripts which manipulate sys.path instead of | |
|
77 | # assuming that things exist system-wide. | |
|
78 | INSTALLED = True | |
|
79 | 73 | |
|
80 | 74 | #----------------------------------------------------------------------------- |
|
81 | 75 | # Warnings control |
@@ -132,8 +126,6 b' def report():' | |||
|
132 | 126 | |
|
133 | 127 | out = [ sys_info() ] |
|
134 | 128 | |
|
135 | out.append('\nRunning from an installed IPython: %s\n' % INSTALLED) | |
|
136 | ||
|
137 | 129 | avail = [] |
|
138 | 130 | not_avail = [] |
|
139 | 131 | |
@@ -255,17 +247,8 b' class IPTester(object):' | |||
|
255 | 247 | """Create new test runner.""" |
|
256 | 248 | p = os.path |
|
257 | 249 | if runner == 'iptest': |
|
258 | if INSTALLED: | |
|
259 | iptest_app = get_ipython_module_path('IPython.testing.iptest') | |
|
260 | self.runner = pycmd2argv(iptest_app) + sys.argv[1:] | |
|
261 | else: | |
|
262 | # Find our own 'iptest' script OS-level entry point. Don't | |
|
263 | # look system-wide, so we are sure we pick up *this one*. And | |
|
264 | # pass through to subprocess call our own sys.argv | |
|
265 | ippath = p.abspath(p.join(p.dirname(__file__),'..','..')) | |
|
266 | script = p.join(ippath, 'iptest.py') | |
|
267 | self.runner = pycmd2argv(script) + sys.argv[1:] | |
|
268 | ||
|
250 | iptest_app = get_ipython_module_path('IPython.testing.iptest') | |
|
251 | self.runner = pycmd2argv(iptest_app) + sys.argv[1:] | |
|
269 | 252 | else: |
|
270 | 253 | # For trial, it needs to be installed system-wide |
|
271 | 254 | self.runner = pycmd2argv(p.abspath(find_cmd('trial'))) |
@@ -52,13 +52,6 b' from . import decorators as dec' | |||
|
52 | 52 | # Globals |
|
53 | 53 | #----------------------------------------------------------------------------- |
|
54 | 54 | |
|
55 | # By default, we assume IPython has been installed. But if the test suite is | |
|
56 | # being run from a source tree that has NOT been installed yet, this flag can | |
|
57 | # be set to False by the entry point scripts, to let us know that we must call | |
|
58 | # the source tree versions of the scripts which manipulate sys.path instead of | |
|
59 | # assuming that things exist system-wide. | |
|
60 | INSTALLED = True | |
|
61 | ||
|
62 | 55 | # Make a bunch of nose.tools assert wrappers that can be used in test |
|
63 | 56 | # generators. This will expose an assert* function for each one in nose.tools. |
|
64 | 57 | |
@@ -207,17 +200,9 b' def ipexec(fname, options=None):' | |||
|
207 | 200 | _ip = get_ipython() |
|
208 | 201 | test_dir = os.path.dirname(__file__) |
|
209 | 202 | |
|
210 | # Find the ipython script from the package we're using, so that the test | |
|
211 | # suite can be run from the source tree without an installed IPython | |
|
212 | p = os.path | |
|
213 | if INSTALLED: | |
|
214 | ipython_cmd = find_cmd('ipython') | |
|
215 | else: | |
|
216 | ippath = p.abspath(p.join(p.dirname(__file__),'..','..')) | |
|
217 | ipython_script = p.join(ippath, 'ipython.py') | |
|
218 | ipython_cmd = 'python "%s"' % ipython_script | |
|
203 | ipython_cmd = find_cmd('ipython') | |
|
219 | 204 | # Absolute path for filename |
|
220 | full_fname = p.join(test_dir, fname) | |
|
205 | full_fname = os.path.join(test_dir, fname) | |
|
221 | 206 | full_cmd = '%s %s %s' % (ipython_cmd, cmdargs, full_fname) |
|
222 | 207 | #print >> sys.stderr, 'FULL CMD:', full_cmd # dbg |
|
223 | 208 | return getoutputerror(full_cmd) |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now