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

Method test_many_threads_timeout

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

Source from the content-addressed store, hash-verified

988
989 @bigmemtest(size=50, memuse=100*2**20, dry_run=False)
990 def test_many_threads_timeout(self, size):
991 # Test multiple concurrent put() and get(timeout=...)
992 q = self.q
993 inputs = list(range(1000))
994 results = self.run_threads(size, q, inputs,
995 self.feed, self.consume_timeout)
996
997 self.assertEqual(sorted(results), inputs)
998
999 def test_references(self):
1000 # The queue should lose references to each item as soon as

Callers

nothing calls this directly

Calls 3

run_threadsMethod · 0.95
listClass · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected