From f06a50447a8787d464e223428757aa6496ad8d64 2015-11-12 17:51:50 From: Matthias Bussonnier Date: 2015-11-12 17:51:50 Subject: [PATCH] untest install-ext which is deprecated --- diff --git a/IPython/core/tests/daft_extension.py b/IPython/core/tests/daft_extension/daft_extension.py similarity index 100% rename from IPython/core/tests/daft_extension.py rename to IPython/core/tests/daft_extension/daft_extension.py diff --git a/IPython/core/tests/daft_extension/setup.py b/IPython/core/tests/daft_extension/setup.py new file mode 100644 index 0000000..ed00d79 --- /dev/null +++ b/IPython/core/tests/daft_extension/setup.py @@ -0,0 +1,5 @@ +from distutils.core import setup +setup(name='daft_extension', + version='1.0', + py_modules=['daft_extension'], + ) diff --git a/IPython/core/tests/test_magic.py b/IPython/core/tests/test_magic.py index 9bbe3c3..70777bf 100644 --- a/IPython/core/tests/test_magic.py +++ b/IPython/core/tests/test_magic.py @@ -611,8 +611,8 @@ def test_extension(): try: _ip.ipython_dir = tmpdir.name nt.assert_raises(ImportError, _ip.magic, "load_ext daft_extension") - url = os.path.join(os.path.dirname(__file__), "daft_extension.py") - _ip.magic("install_ext %s" % url) + url = os.path.join(os.path.dirname(__file__), "daft_extension") + _ip.system("pip install %s" % url) _ip.user_ns.pop('arq', None) invalidate_caches() # Clear import caches _ip.magic("load_ext daft_extension")