Show More
@@ -605,13 +605,10 b' def test_prun_quotes():' | |||
|
605 | 605 | nt.assert_equal(_ip.user_ns['x'], '\t') |
|
606 | 606 | |
|
607 | 607 | def test_extension(): |
|
608 | tmpdir = TemporaryDirectory() | |
|
609 | orig_ipython_dir = _ip.ipython_dir | |
|
610 | try: | |
|
611 | _ip.ipython_dir = tmpdir.name | |
|
612 | 608 |
|
|
613 |
|
|
|
614 | _ip.system("%s -m pip install %s" % (sys.executable, url)) | |
|
609 | daft_path = os.path.join(os.path.dirname(__file__), "daft_extension") | |
|
610 | sys.path.insert(0, daft_path) | |
|
611 | try: | |
|
615 | 612 | _ip.user_ns.pop('arq', None) |
|
616 | 613 | invalidate_caches() # Clear import caches |
|
617 | 614 | _ip.magic("load_ext daft_extension") |
@@ -619,8 +616,7 b' def test_extension():' | |||
|
619 | 616 | _ip.magic("unload_ext daft_extension") |
|
620 | 617 | assert 'arq' not in _ip.user_ns |
|
621 | 618 | finally: |
|
622 | _ip.ipython_dir = orig_ipython_dir | |
|
623 | tmpdir.cleanup() | |
|
619 | sys.path.remove(daft_path) | |
|
624 | 620 | |
|
625 | 621 | |
|
626 | 622 | @dec.skip_without('nbformat') |
@@ -126,7 +126,7 b' def find_package_data():' | |||
|
126 | 126 | |
|
127 | 127 | package_data = { |
|
128 | 128 | 'IPython.core' : ['profile/README*'], |
|
129 | 'IPython.core.tests' : ['*.png', '*.jpg'], | |
|
129 | 'IPython.core.tests' : ['*.png', '*.jpg', 'daft_extension/*.py'], | |
|
130 | 130 | 'IPython.lib.tests' : ['*.wav'], |
|
131 | 131 | 'IPython.testing.plugin' : ['*.txt'], |
|
132 | 132 | } |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now