Show More
@@ -18,8 +18,6 b' from tempfile import NamedTemporaryFile' | |||||
18 | from textwrap import dedent |
|
18 | from textwrap import dedent | |
19 | from unittest.mock import patch |
|
19 | from unittest.mock import patch | |
20 |
|
20 | |||
21 | import nose.tools as nt |
|
|||
22 |
|
||||
23 | from IPython.core import debugger |
|
21 | from IPython.core import debugger | |
24 | from IPython.testing import IPYTHON_TESTING_TIMEOUT_SCALE |
|
22 | from IPython.testing import IPYTHON_TESTING_TIMEOUT_SCALE | |
25 | from IPython.testing.decorators import skip_win32 |
|
23 | from IPython.testing.decorators import skip_win32 | |
@@ -66,13 +64,13 b' def test_longer_repr():' | |||||
66 | a = '1234567890'* 7 |
|
64 | a = '1234567890'* 7 | |
67 | ar = "'1234567890123456789012345678901234567890123456789012345678901234567890'" |
|
65 | ar = "'1234567890123456789012345678901234567890123456789012345678901234567890'" | |
68 | a_trunc = "'123456789012...8901234567890'" |
|
66 | a_trunc = "'123456789012...8901234567890'" | |
69 |
|
|
67 | assert trepr(a) == a_trunc | |
70 | # The creation of our tracer modifies the repr module's repr function |
|
68 | # The creation of our tracer modifies the repr module's repr function | |
71 | # in-place, since that global is used directly by the stdlib's pdb module. |
|
69 | # in-place, since that global is used directly by the stdlib's pdb module. | |
72 | with warnings.catch_warnings(): |
|
70 | with warnings.catch_warnings(): | |
73 | warnings.simplefilter('ignore', DeprecationWarning) |
|
71 | warnings.simplefilter('ignore', DeprecationWarning) | |
74 | debugger.Tracer() |
|
72 | debugger.Tracer() | |
75 |
|
|
73 | assert trepr(a) == ar | |
76 |
|
74 | |||
77 | def test_ipdb_magics(): |
|
75 | def test_ipdb_magics(): | |
78 | '''Test calling some IPython magics from ipdb. |
|
76 | '''Test calling some IPython magics from ipdb. |
General Comments 0
You need to be logged in to leave comments.
Login now