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

Method test

Lib/test/test_super.py:461–464  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

459 pass
460
461 def test(name):
462 mytype = MyType(name, (MyType,), {})
463 super(MyType, type(mytype)).__setattr__(mytype, "bar", 1)
464 self.assertEqual(mytype.bar, 1)
465
466 _testinternalcapi = import_helper.import_module("_testinternalcapi")
467 for _ in range(_testinternalcapi.SPECIALIZATION_THRESHOLD):

Callers 15

doFilterFunction · 0.45
mainFunction · 0.45
$tFunction · 0.45
aFunction · 0.45
lFunction · 0.45
_tFunction · 0.45
hFunction · 0.45
aeFunction · 0.45
test_path_fragmentMethod · 0.45
test_path_queryMethod · 0.45
test_empty_pathMethod · 0.45

Calls 4

superClass · 0.85
MyTypeClass · 0.70
__setattr__Method · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected