mirror of https://github.com/MagicStack/uvloop.git
Fix slow_callback_duration repr in warnings for TimerHandles
Issue #103.
This commit is contained in:
parent
135d060690
commit
b45a4c0229
|
@ -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()
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue