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

Class I

Lib/test/test_isinstance.py:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 # gotten. In that case, isinstance() should return False.
26 def test_class_has_no_bases(self):
27 class I(object):
28 def getclass(self):
29 # This must return an object that has no __bases__ attribute
30 return None
31 __class__ = property(getclass)
32
33 class C(object):
34 def getbases(self):

Calls 1

propertyClass · 0.85