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

Method test___self__

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

Source from the content-addressed store, hash-verified

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)
309 self.cannot_set_attr(self.fi.a, "__self__", self.fi, AttributeError)
310
311 def test___func___non_method(self):
312 # Behavior should be the same when a method is added via an attr

Callers

nothing calls this directly

Calls 2

cannot_set_attrMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected