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

Method test_apply

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

Source from the content-addressed store, hash-verified

2917 super().tearDownClass()
2918
2919 def test_apply(self):
2920 papply = self.pool.apply
2921 self.assertEqual(papply(sqr, (5,)), sqr(5))
2922 self.assertEqual(papply(sqr, (), {'x':3}), sqr(x=3))
2923
2924 def test_map(self):
2925 pmap = self.pool.map

Callers

nothing calls this directly

Calls 2

sqrFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected