MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_semaphore

Method test_semaphore

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

Source from the content-addressed store, hash-verified

1543 self.assertReturnsIfImplemented(2, get_value, sem)
1544
1545 def test_semaphore(self):
1546 sem = self.Semaphore(2)
1547 self._test_semaphore(sem)
1548 self.assertEqual(sem.release(), None)
1549 self.assertReturnsIfImplemented(3, get_value, sem)
1550 self.assertEqual(sem.release(), None)
1551 self.assertReturnsIfImplemented(4, get_value, sem)
1552
1553 def test_bounded_semaphore(self):
1554 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