Commit 7ce0b531 authored by Denis Bilenko's avatar Denis Bilenko

greentest.py: CountingHuB: do not assume that switch() is argument-less

parent 0001ccf1
......@@ -262,9 +262,9 @@ class CountingHub(_original_Hub):
switch_count = 0
def switch(self):
def switch(self, *args):
self.switch_count += 1
return _original_Hub.switch(self)
return _original_Hub.switch(self, *args)
if gettotalrefcount is None:
gevent.hub.Hub = CountingHub
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment