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

Method test_barrier

Lib/test/_test_multiprocessing.py:2090–2095  ·  view source on GitHub ↗

Test that a barrier is passed in lockstep

(self, passes=1)

Source from the content-addressed store, hash-verified

2088 assert not barrier.broken
2089
2090 def test_barrier(self, passes=1):
2091 """
2092 Test that a barrier is passed in lockstep
2093 """
2094 results = [self.DummyList(), self.DummyList()]
2095 self.run_threads(self.multipass, (self.barrier, results, passes))
2096
2097 def test_barrier_10(self):
2098 """

Callers 1

test_barrier_10Method · 0.95

Calls 2

DummyListMethod · 0.95
run_threadsMethod · 0.95

Tested by

no test coverage detected