def disabletest4(self):
        """verify that a recursive macro results in a RuntimeError"""
        self.macros = macros.Macros()
        self.macros.update({'foo': 'bar1',
                            'baz': '%(foo)/fred'})
        self.macros['foo'] = 'bar2 %(baz)s'
        try:
            self.macros['baz']
        except RuntimeError, exc:
            if str(exc) != 'maximum recursion depth exceeded':
                self.fail('expected maximum recursion RuntimeError when expanding macro loop')
        else:
            self.fail('expected RuntimeError when expanding macro loop')
dataset/ETHPy150Open sassoftware/conary/conary_test/cvctest/recipetest.py/MacroTest.disabletest4/original