Commit abab3e25 authored by Jason Madden's avatar Jason Madden

test__destroy.py libuv

parent 8463b77c
...@@ -47,6 +47,8 @@ def get_header_version(): ...@@ -47,6 +47,8 @@ def get_header_version():
class loop(AbstractLoop): class loop(AbstractLoop):
DEFAULT_LOOP_REGENERATES = True
error_handler = None error_handler = None
_CHECK_POINTER = 'uv_check_t *' _CHECK_POINTER = 'uv_check_t *'
......
...@@ -35,6 +35,9 @@ assert hub.loop.ptr != initloop.ptr ...@@ -35,6 +35,9 @@ assert hub.loop.ptr != initloop.ptr
# Destroy hub including default loop, create new hub with non-default loop. # Destroy hub including default loop, create new hub with non-default loop.
hub.destroy(destroy_loop=True) hub.destroy(destroy_loop=True)
hub = gevent.get_hub() hub = gevent.get_hub()
assert not hub.loop.default, hub if not getattr(hub.loop, 'DEFAULT_LOOP_REGENERATES', False):
assert not hub.loop.default, hub
else:
assert hub.loop.default
hub.destroy() hub.destroy()
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