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

Method test___func__

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

Source from the content-addressed store, hash-verified

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)
310 self.cannot_set_attr(self.fi.a, "__func__", self.F.a, AttributeError)
311
312 def test___self__(self):
313 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