☰
Debian Codegraph
@
0.41.2-2
0.40.4-4
/
/
tests
/
isolated
/
hub_use_hub_class.py
☽
☼
tests/isolated/hub_use_hub_class.py
code
plain
raw
Expat
2005-2006, Bob Ippolito; 2010, Daniele Varrazzo <
[email protected]
>; 2009-2010, Denis Bilenko, denis.bilenko at gmail com; 2007-2010, Linden Research, Inc.; 2008-2010, Eventlet Contributors
debian/copyright
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')