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

Method test___self__

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

Source from the content-addressed store, hash-verified

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)
314 self.cannot_set_attr(self.fi.a, "__self__", self.fi, AttributeError)
315
316 def test___func___non_method(self):
317 # 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