From a73e349242517ece64ac8de0922e3e122609ec4f 2013-06-29 14:36:28 From: Victor Zverovich Date: 2013-06-29 14:36:28 Subject: [PATCH] Use absolute path to iptest, because the tests are not always run from $IPYTHONDIR. --- diff --git a/IPython/testing/iptest.py b/IPython/testing/iptest.py index 2c93f5f..3f8decc 100644 --- a/IPython/testing/iptest.py +++ b/IPython/testing/iptest.py @@ -340,7 +340,7 @@ class IPTester(object): """Create new test runner.""" p = os.path if runner == 'iptest': - iptest_app = get_ipython_module_path('IPython.testing.iptest') + iptest_app = os.path.abspath(get_ipython_module_path('IPython.testing.iptest')) self.runner = pycmd2argv(iptest_app) + sys.argv[1:] else: raise Exception('Not a valid test runner: %s' % repr(runner))