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

Method test_nested_optimization

Lib/test/test_functools.py:194–199  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

192 self.assertEqual(join(data), '0123456789')
193
194 def test_nested_optimization(self):
195 partial = self.partial
196 inner = partial(signature, 'asdf')
197 nested = partial(inner, bar=True)
198 flat = partial(signature, 'asdf', bar=True)
199 self.assertEqual(signature(nested), signature(flat))
200
201 def test_nested_optimization_bug(self):
202 partial = self.partial

Callers

nothing calls this directly

Calls 3

partialClass · 0.85
signatureFunction · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected