Home
last modified time | relevance | path

Searched refs:nrunning (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_threading.py36 def __init__(self, name, testcase, sema, mutex, nrunning): argument
41 self.nrunning = nrunning
51 self.nrunning.inc()
53 print self.nrunning.get(), 'tasks are running'
54 self.testcase.assertLessEqual(self.nrunning.get(), 3)
61 self.nrunning.dec()
62 self.testcase.assertGreaterEqual(self.nrunning.get(), 0)
65 self.name, self.nrunning.get())
/external/python/cpython3/Lib/test/
Dtest_threading.py44 def __init__(self, name, testcase, sema, mutex, nrunning): argument
49 self.nrunning = nrunning
59 self.nrunning.inc()
61 print(self.nrunning.get(), 'tasks are running')
62 self.testcase.assertLessEqual(self.nrunning.get(), 3)
69 self.nrunning.dec()
70 self.testcase.assertGreaterEqual(self.nrunning.get(), 0)
73 (self.name, self.nrunning.get()))