def METHOD_NAME():
    class B: pass
    class C(object):
        def getbases(self):
            raise AttributeError
        __bases__ = property(getbases)
    assert_raises(TypeError, issubclass, B, C())