Show More
@@ -28,6 +28,7 b' from IPython.core.magic import (Magics, magics_class, line_magic,' | |||||
28 | register_line_cell_magic) |
|
28 | register_line_cell_magic) | |
29 | from IPython.external.decorator import decorator |
|
29 | from IPython.external.decorator import decorator | |
30 | from IPython.testing.decorators import skipif |
|
30 | from IPython.testing.decorators import skipif | |
|
31 | from IPython.utils.path import compress_user | |||
31 | from IPython.utils import py3compat |
|
32 | from IPython.utils import py3compat | |
32 |
|
33 | |||
33 |
|
34 | |||
@@ -241,7 +242,7 b' def test_info():' | |||||
241 | fname = fname[:-1] |
|
242 | fname = fname[:-1] | |
242 | # case-insensitive comparison needed on some filesystems |
|
243 | # case-insensitive comparison needed on some filesystems | |
243 | # e.g. Windows: |
|
244 | # e.g. Windows: | |
244 | nt.assert_equal(i['file'].lower(), fname.lower()) |
|
245 | nt.assert_equal(i['file'].lower(), compress_user(fname.lower())) | |
245 | nt.assert_equal(i['definition'], None) |
|
246 | nt.assert_equal(i['definition'], None) | |
246 | nt.assert_equal(i['docstring'], Call.__doc__) |
|
247 | nt.assert_equal(i['docstring'], Call.__doc__) | |
247 | nt.assert_equal(i['source'], None) |
|
248 | nt.assert_equal(i['source'], None) |
@@ -384,7 +384,7 b' def test_oinfo_detail():' | |||||
384 | content = reply['content'] |
|
384 | content = reply['content'] | |
385 | assert content['found'] |
|
385 | assert content['found'] | |
386 | text = content['data']['text/plain'] |
|
386 | text = content['data']['text/plain'] | |
387 |
nt.assert_in(' |
|
387 | nt.assert_in('Signature:', text) | |
388 | nt.assert_in('Source:', text) |
|
388 | nt.assert_in('Source:', text) | |
389 |
|
389 | |||
390 |
|
390 |
General Comments 0
You need to be logged in to leave comments.
Login now