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