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

Method test___func__

Lib/test/test_funcattrs.py:303–305  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

301 self.cannot_set_attr(self.fi.a, "__class__", self.F, TypeError)
302
303 def test___func__(self):
304 self.assertEqual(self.fi.a.__func__, self.F.a)
305 self.cannot_set_attr(self.fi.a, "__func__", self.F.a, AttributeError)
306
307 def test___self__(self):
308 self.assertEqual(self.fi.a.__self__, self.fi)

Callers

nothing calls this directly

Calls 2

cannot_set_attrMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected