def test_brokenStr(self):
        """
        L{reflect.safe_repr} isn't affected by a broken C{__str__} method.
        """
        b = Breakable()
        b.breakStr = True
        self.assertEqual(reflect.safe_repr(b), repr(b))

        L{reflect.safe_repr} isn't affected by a broken C{__str__} method.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_reflect.py