MCPcopy Index your code
hub / github.com/RustPython/RustPython / test___class__

Method test___class__

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

Source from the content-addressed store, hash-verified

302class InstancemethodAttrTest(FuncAttrsTest):
303
304 def test___class__(self):
305 self.assertEqual(self.fi.a.__self__.__class__, self.F)
306 self.cannot_set_attr(self.fi.a, "__class__", self.F, TypeError)
307
308 def test___func__(self):
309 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