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

Method test_semaphore

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

Source from the content-addressed store, hash-verified

1740 self.assertReturnsIfImplemented(2, get_value, sem)
1741
1742 def test_semaphore(self):
1743 sem = self.Semaphore(2)
1744 self._test_semaphore(sem)
1745 self.assertEqual(sem.release(), None)
1746 self.assertReturnsIfImplemented(3, get_value, sem)
1747 self.assertEqual(sem.release(), None)
1748 self.assertReturnsIfImplemented(4, get_value, sem)
1749
1750 def test_bounded_semaphore(self):
1751 sem = self.BoundedSemaphore(2)

Callers

nothing calls this directly

Calls 5

_test_semaphoreMethod · 0.95
releaseMethod · 0.95
SemaphoreMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected