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

Method test_many_threads_nonblock

Lib/test/test_queue.py:980–987  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

978
979 @bigmemtest(size=50, memuse=100*2**20, dry_run=False)
980 def test_many_threads_nonblock(self, size):
981 # Test multiple concurrent put() and get(block=False)
982 q = self.q
983 inputs = list(range(10000))
984 results = self.run_threads(size, q, inputs,
985 self.feed, self.consume_nonblock)
986
987 self.assertEqual(sorted(results), inputs)
988
989 @bigmemtest(size=50, memuse=100*2**20, dry_run=False)
990 def test_many_threads_timeout(self, size):

Callers

nothing calls this directly

Calls 3

run_threadsMethod · 0.95
listClass · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected