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

Method test_unbound_method_retrieval

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

Source from the content-addressed store, hash-verified

743 self.assertIs(self.A.cls.__self__, self.A)
744
745 def test_unbound_method_retrieval(self):
746 obj = self.A
747 self.assertNotHasAttr(obj.both, "__self__")
748 self.assertNotHasAttr(obj.nested, "__self__")
749 self.assertNotHasAttr(obj.over_partial, "__self__")
750 self.assertNotHasAttr(obj.static, "__self__")
751 self.assertNotHasAttr(self.a.static, "__self__")
752
753 def test_descriptors(self):
754 for obj in [self.A, self.a]:

Callers

nothing calls this directly

Calls 1

assertNotHasAttrMethod · 0.80

Tested by

no test coverage detected