def test_bytesrepr(self):
        """
        The repr of a L{bytes} L{FilePath} shouldn't burst into flames.
        """
        fp = filepath.FilePath(u'/parent-mon\u20acy'.encode('utf-8'))
        reprOutput = repr(fp)
        if _PY3:
            self.assertEqual(
                "FilePath(b'/parent-mon\\xe2\\x82\\xacy')", reprOutput)
        else:
            self.assertEqual(
                "FilePath('/parent-mon\\xe2\\x82\\xacy')", reprOutput)

        The repr of a L{bytes} L{FilePath} shouldn't burst into flames.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_paths.py