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

Method test_with_bound_and_unbound_methods

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

Source from the content-addressed store, hash-verified

185 self.assertRaises(ReferenceError, getattr, p, 'func')
186
187 def test_with_bound_and_unbound_methods(self):
188 data = list(map(str, range(10)))
189 join = self.partial(str.join, '')
190 self.assertEqual(join(data), '0123456789')
191 join = self.partial(''.join)
192 self.assertEqual(join(data), '0123456789')
193
194 def test_nested_optimization(self):
195 partial = self.partial

Callers

nothing calls this directly

Calls 4

listClass · 0.85
partialMethod · 0.80
joinFunction · 0.50
assertEqualMethod · 0.45

Tested by

no test coverage detected