Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/test/
Dtest_multiprocessing.py74 TIMEOUT1, TIMEOUT2, TIMEOUT3 = 0.82, 0.35, 1.4 variable
76 TIMEOUT1, TIMEOUT2, TIMEOUT3 = 0.1, 0.1, 0.1 variable
486 self.assertRaises(Queue.Full, put, 7, False, TIMEOUT2)
554 self.assertRaises(Queue.Empty, get, False, TIMEOUT2)
753 self.assertEqual(acquire(True, TIMEOUT2), False)
754 self.assertTimingAlmostEqual(acquire.elapsed, TIMEOUT2)
903 time.sleep(TIMEOUT2)
1224 res = self.pool.apply_async(sqr, (6, TIMEOUT2 + 1.0))
1226 self.assertRaises(multiprocessing.TimeoutError, get, timeout=TIMEOUT2)
1227 self.assertTimingAlmostEqual(get.elapsed, TIMEOUT2)
/external/python/cpython3/Lib/test/
D_test_multiprocessing.py108 TIMEOUT1, TIMEOUT2, TIMEOUT3 = 0.82, 0.35, 1.4 variable
110 TIMEOUT1, TIMEOUT2, TIMEOUT3 = 0.1, 0.1, 0.1 variable
956 self.assertRaises(pyqueue.Full, put, 7, False, TIMEOUT2)
1025 self.assertRaises(pyqueue.Empty, get, False, TIMEOUT2)
1298 self.assertEqual(acquire(True, TIMEOUT2), False)
1299 self.assertTimingAlmostEqual(acquire.elapsed, TIMEOUT2)
1605 time.sleep(TIMEOUT2)
2440 res = self.pool.apply_async(sqr, (6, TIMEOUT2 + 1.0))
2442 self.assertRaises(multiprocessing.TimeoutError, get, timeout=TIMEOUT2)
2443 self.assertTimingAlmostEqual(get.elapsed, TIMEOUT2)