Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/g/r/gruvi-HEAD/tests/test_hub.py   gruvi(Download)
    def test_hub_cleanup(self):
        # After we close() a Hub, it should be garbage collectable, including
        # its event loop.
        hub = gruvi.hub.Hub()
        gruvi.sleep(0)
    def test_many_hubs(self):
        # Create and close a Hub in many threads. If the hub does not garbage
        # collect, then this will run out of file descriptors.
        for i in range(100):
            hub = gruvi.hub.Hub()

src/g/r/gruvi-0.9.2/tests/test_hub.py   gruvi(Download)
    def test_hub_cleanup(self):
        # After we close() a Hub, it should be garbage collectable, including
        # its event loop.
        hub = gruvi.hub.Hub()
        gruvi.sleep(0)
    def test_many_hubs(self):
        # Create and close a Hub in many threads. If the hub does not garbage
        # collect, then this will run out of file descriptors.
        for i in range(100):
            hub = gruvi.hub.Hub()