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

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

        def active_thread_count():
    from threading import enumerate
    return sum(1 for t in enumerate()
               if not t.name.startswith('Dummy-'))
        


src/f/i/firefox-flicks-HEAD/vendor-local/lib/python/celery/tests/bin/test_celeryd.py   firefox-flicks(Download)
    def test_active_thread_count(self):
        self.assertTrue(cd.active_thread_count())
 
    @disable_stdouts
    def test_set_process_status(self):

src/c/e/celery-HEAD/celery/tests/bin/test_worker.py   celery(Download)
    def test_active_thread_count(self):
        self.assertTrue(cd.active_thread_count())
 
    @disable_stdouts
    def test_set_process_status(self):

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/celery/tests/bin/test_celeryd.py   antisocial(Download)
    def test_active_thread_count(self):
        self.assertTrue(cd.active_thread_count())
 
    @disable_stdouts
    def test_set_process_status(self):

src/c/e/celery-3.1.11/celery/tests/bin/test_worker.py   celery(Download)
    def test_active_thread_count(self):
        self.assertTrue(cd.active_thread_count())
 
    @disable_stdouts
    def test_set_process_status(self):