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

Method _subclass

Lib/test/test_weakref.py:1180–1185  ·  view source on GitHub ↗

Return an Object subclass overriding `some_method`.

(self)

Source from the content-addressed store, hash-verified

1178class WeakMethodTestCase(unittest.TestCase):
1179
1180 def _subclass(self):
1181 """Return an Object subclass overriding `some_method`."""
1182 class C(Object):
1183 def some_method(self):
1184 return 6
1185 return C
1186
1187 def test_alive(self):
1188 o = Object(1)

Callers 3

test_method_deadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected