Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ C
Class
C
Lib/test/test_isinstance.py:33–36 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
31
__class__ = property(getclass)
32
33
class
C(object):
34
def
getbases(self):
35
return
()
36
__bases__ = property(getbases)
37
38
self.assertEqual(False, isinstance(I(), C()))
39
Callers
9
test_class_has_no_bases
Method · 0.70
test_bases_raises_other_than_attribute_error
Method · 0.70
test_dont_mask_non_attribute_error
Method · 0.70
test_mask_attribute_error
Method · 0.70
test_isinstance_dont_mask_non_attribute_error
Method · 0.70
test_dont_mask_non_attribute_error
Method · 0.70
test_mask_attribute_error
Method · 0.70
test_dont_mask_non_attribute_error_in_cls_arg
Method · 0.70
test_mask_attribute_error_in_cls_arg
Method · 0.70
Calls
1
property
Class · 0.85
Tested by
9
test_class_has_no_bases
Method · 0.56
test_bases_raises_other_than_attribute_error
Method · 0.56
test_dont_mask_non_attribute_error
Method · 0.56
test_mask_attribute_error
Method · 0.56
test_isinstance_dont_mask_non_attribute_error
Method · 0.56
test_dont_mask_non_attribute_error
Method · 0.56
test_mask_attribute_error
Method · 0.56
test_dont_mask_non_attribute_error_in_cls_arg
Method · 0.56
test_mask_attribute_error_in_cls_arg
Method · 0.56