Commit 2f231ce3 authored by Denis Bilenko's avatar Denis Bilenko

greentest.py: only enable switch counting hub in non-debug mode

parent b1939a9d
......@@ -257,7 +257,8 @@ class CountingHub(_original_Hub):
self.switch_count += 1
return _original_Hub.switch(self)
gevent.hub.Hub = CountingHub
if gettotalrefcount is None:
gevent.hub.Hub = CountingHub
def test_outer_timeout_is_not_lost(self):
......
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