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

Method test_barrier

Lib/test/_test_multiprocessing.py:2295–2300  ·  view source on GitHub ↗

Test that a barrier is passed in lockstep

(self, passes=1)

Source from the content-addressed store, hash-verified

2293
2294 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
2295 def test_barrier(self, passes=1):
2296 """
2297 Test that a barrier is passed in lockstep
2298 """
2299 results = [self.DummyList(), self.DummyList()]
2300 self.run_threads(self.multipass, (self.barrier, results, passes))
2301
2302 @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
2303 def test_barrier_10(self):

Callers 1

test_barrier_10Method · 0.95

Calls 2

DummyListMethod · 0.95
run_threadsMethod · 0.95

Tested by

no test coverage detected