def test_infinite_rec_classic_classes(self):
        # if __coerce__() returns its arguments reversed it causes an infinite
        # recursion for classic classes.
        class Tester:
            def __coerce__(self, other):
                return other, self

        exc = TestFailed("__coerce__() returning its arguments reverse "
                                "should raise RuntimeError")
        try:
            Tester() + 1
        except (__HOLE__, TypeError):
            return
        except:
            raise exc
        else:
            raise exc
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_coercion.py/CoercionTest.test_infinite_rec_classic_classes