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

Method test_async

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

Source from the content-addressed store, hash-verified

2743 self.pool.map(sqr, SpecialIterable(), 1)
2744
2745 def test_async(self):
2746 res = self.pool.apply_async(sqr, (7, TIMEOUT1,))
2747 get = TimingWrapper(res.get)
2748 self.assertEqual(get(), 49)
2749 self.assertTimingAlmostEqual(get.elapsed, TIMEOUT1)
2750
2751 def test_async_timeout(self):
2752 p = self.Pool(3)

Callers

nothing calls this directly

Calls 5

TimingWrapperClass · 0.85
getFunction · 0.85
apply_asyncMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected