MCPcopy Index your code
hub / github.com/python/cpython / test_bounded_semaphore

Method test_bounded_semaphore

Lib/test/_test_multiprocessing.py:1750–1756  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1748 self.assertReturnsIfImplemented(4, get_value, sem)
1749
1750 def test_bounded_semaphore(self):
1751 sem = self.BoundedSemaphore(2)
1752 self._test_semaphore(sem)
1753 # Currently fails on OS/X
1754 #if HAVE_GETVALUE:
1755 # self.assertRaises(ValueError, sem.release)
1756 # self.assertReturnsIfImplemented(2, get_value, sem)
1757
1758 def test_timeout(self):
1759 if self.TYPE != 'processes':

Callers

nothing calls this directly

Calls 2

_test_semaphoreMethod · 0.95
BoundedSemaphoreMethod · 0.80

Tested by

no test coverage detected