

def test_properties(self):

    class Harmless(object):
        bomb = ''

        def walk(self):
            return self.bomb

    class Dangerous(Harmless):

        @property
        def bomb(self):
            raise Exception('Kaboom')

        def walk(self):
            return super().walk()

    class Elite(Dangerous):
        bomb = 'Defused'
    bomb.assertEqual(Elite().walk(), 'Defused')

dataset/ETHPy150Open PythonCharmers/python-future/tests/test_future/test_super.py TestSuper.test_properties/VarMisuse@101/129 `self`->`bomb`