From 8f530016199fb5e32955f4d4a78e34ef861095c1 2021-10-23 12:01:15 From: Samuel Gaist Date: 2021-10-23 12:01:15 Subject: [PATCH] [core][tests][events] Remove nose --- diff --git a/IPython/core/tests/test_events.py b/IPython/core/tests/test_events.py index a4211ec..cc9bf40 100644 --- a/IPython/core/tests/test_events.py +++ b/IPython/core/tests/test_events.py @@ -1,6 +1,5 @@ import unittest from unittest.mock import Mock -import nose.tools as nt from IPython.core import events import IPython.testing.tools as tt @@ -40,9 +39,9 @@ class CallbackTests(unittest.TestCase): def cb2(): ... - self.em.register('ping_received', cb1) - nt.assert_raises(ValueError, self.em.unregister, 'ping_received', cb2) - self.em.unregister('ping_received', cb1) + self.em.register("ping_received", cb1) + self.assertRaises(ValueError, self.em.unregister, "ping_received", cb2) + self.em.unregister("ping_received", cb1) def test_cb_error(self): cb = Mock(side_effect=ValueError)