Debian Codegraph @

tests/isolated/hub_use_hub_class.py

raw
1 __test__ = False
2
3
4 class Foo:
5 pass
6
7
8 if __name__ == '__main__':
9 import eventlet.hubs
10 eventlet.hubs.use_hub(Foo)
11 hub = eventlet.hubs.get_hub()
12 assert isinstance(hub, Foo), repr(hub)
13 print('pass')