Show More
@@ -26,7 +26,6 b' import shutil' | |||
|
26 | 26 | import sys |
|
27 | 27 | import tempfile |
|
28 | 28 | |
|
29 | from subprocess import check_output | |
|
30 | 29 | from unittest import TestCase |
|
31 | 30 | |
|
32 | 31 | import nose.tools as nt |
@@ -154,11 +153,13 b' def test_list_bundled_profiles():' | |||
|
154 | 153 | nt.assert_equal(bundled, bundled_true) |
|
155 | 154 | |
|
156 | 155 | |
|
156 | @dec.skipif(sys.version_info < (2,7), "python -m doesn't work on 2.6") | |
|
157 | 157 | def test_profile_create_ipython_dir(): |
|
158 | 158 | """ipython profile create respects --ipython-dir""" |
|
159 | from subprocess import check_output, STDOUT | |
|
159 | 160 | with TemporaryDirectory() as td: |
|
160 | 161 | check_output([sys.executable, '-m', 'IPython', 'profile', 'create', |
|
161 | 'foo', '--ipython-dir=%s' % td]) | |
|
162 | 'foo', '--ipython-dir=%s' % td], stderr=STDOUT) | |
|
162 | 163 | profile_dir = os.path.join(td, 'profile_foo') |
|
163 | 164 | assert os.path.exists(profile_dir) |
|
164 | 165 | ipython_config = os.path.join(profile_dir, 'ipython_config.py') |
General Comments 0
You need to be logged in to leave comments.
Login now