Fix slow_callback_duration repr in warnings for TimerHandles

Issue #103.
This commit is contained in:
Yury Selivanov 2017-11-21 11:19:52 -05:00
parent 135d060690
commit b45a4c0229
2 changed files with 2 additions and 3 deletions

View File

@ -348,8 +348,8 @@ class _TestBase:
# format message # format message
msg = log.call_args[0][0] % log.call_args[0][1:] msg = log.call_args[0][0] % log.call_args[0][1:]
# self.assertIn('Executing <Handle', msg) self.assertIn('Executing <TimerHandle', msg)
# self.assertIn('test_debug_slow_callbacks', msg) self.assertIn('test_debug_slow_timer_callbacks', msg)
def test_default_exc_handler_callback(self): def test_default_exc_handler_callback(self):
self.loop._process_events = mock.Mock() self.loop._process_events = mock.Mock()

View File

@ -166,7 +166,6 @@ cdef class TimerHandle:
if self.timer is None: if self.timer is None:
return return
self.callback = None
self.args = None self.args = None
try: try: