Skip to content

Commit b45a4c0

Browse files
committed
Fix slow_callback_duration repr in warnings for TimerHandles
Issue #103.
1 parent 135d060 commit b45a4c0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/test_base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ def test_debug_slow_timer_callbacks(self):
348348
# format message
349349
msg = log.call_args[0][0] % log.call_args[0][1:]
350350

351-
# self.assertIn('Executing <Handle', msg)
352-
# self.assertIn('test_debug_slow_callbacks', msg)
351+
self.assertIn('Executing <TimerHandle', msg)
352+
self.assertIn('test_debug_slow_timer_callbacks', msg)
353353

354354
def test_default_exc_handler_callback(self):
355355
self.loop._process_events = mock.Mock()

uvloop/cbhandles.pyx

-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ cdef class TimerHandle:
166166
if self.timer is None:
167167
return
168168

169-
self.callback = None
170169
self.args = None
171170

172171
try:

0 commit comments

Comments
 (0)