##// END OF EJS Templates
skip Python 2.6 in test_profile...
MinRK -
Show More
@@ -26,7 +26,6 b' import shutil'
26 import sys
26 import sys
27 import tempfile
27 import tempfile
28
28
29 from subprocess import check_output
30 from unittest import TestCase
29 from unittest import TestCase
31
30
32 import nose.tools as nt
31 import nose.tools as nt
@@ -154,11 +153,13 b' def test_list_bundled_profiles():'
154 nt.assert_equal(bundled, bundled_true)
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 def test_profile_create_ipython_dir():
157 def test_profile_create_ipython_dir():
158 """ipython profile create respects --ipython-dir"""
158 """ipython profile create respects --ipython-dir"""
159 from subprocess import check_output, STDOUT
159 with TemporaryDirectory() as td:
160 with TemporaryDirectory() as td:
160 check_output([sys.executable, '-m', 'IPython', 'profile', 'create',
161 check_output([sys.executable, '-m', 'IPython', 'profile', 'create',
161 'foo', '--ipython-dir=%s' % td])
162 'foo', '--ipython-dir=%s' % td], stderr=STDOUT)
162 profile_dir = os.path.join(td, 'profile_foo')
163 profile_dir = os.path.join(td, 'profile_foo')
163 assert os.path.exists(profile_dir)
164 assert os.path.exists(profile_dir)
164 ipython_config = os.path.join(profile_dir, 'ipython_config.py')
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