def test_saferepr_unbounded(self):
        """saferepr() of an unbound method should still show the full information"""
        obj = self.Help()
        # using id() to fetch memory address fails on different platforms
        pattern = re.compile(
            rf"<{Path(__file__).stem}.{self.__class__.__name__}.Help object at 0x[0-9a-fA-F]*>",
        )
        assert pattern.match(_saferepr(obj))
        assert (
            _saferepr(self.Help)
            == f"<class '{Path(__file__).stem}.{self.__class__.__name__}.Help'>"
        )
saferepr() of an unbound method should still show the full information
testing/test_assertrewrite.py