def test_brokenUtf8(self):
        """
        Use str() for non-utf8 bytes: "b'non-utf8'"
        """
        x = b'\xff'
        xStr = reflect.safe_str(x)
        self.assertEqual(xStr, str(x))

        Use str() for non-utf8 bytes: "b'non-utf8'"
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_reflect.py