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

Method test___class__

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

Source from the content-addressed store, hash-verified

297class InstancemethodAttrTest(FuncAttrsTest):
298
299 def test___class__(self):
300 self.assertEqual(self.fi.a.__self__.__class__, self.F)
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)

Callers

nothing calls this directly

Calls 2

cannot_set_attrMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected