File: test_hub_shutdown.py

package info (click to toggle)
python-gevent 0.13.6-1%2Bnmu3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,324 kB
  • sloc: python: 13,296; makefile: 95; ansic: 37
file content (5 lines) | stat: -rw-r--r-- 238 bytes parent folder | download
1
2
3
4
5
"""Tests that Hub.shutdown() works even when hub is not yet started"""
import gevent.hub
res = gevent.hub.get_hub().shutdown()
assert res is None, res
assert 'hub' not in gevent.hub._threadlocal.__dict__, gevent.hub._threadlocal.__dict__