Lines Matching refs:FakePath
70 from test.support.os_helper import FakePath
1380 self.test_walk_prune(FakePath(self.walk_path))
2571 filelink_target = FakePath(self.filelink_target)
2578 FakePath('missing-link'))
2584 filelink = FakePath(self.filelink)
2591 path = os.readlink(FakePath(self.filelinkb))
3060 exitcode = os.spawnv(os.P_WAIT, FakePath(args[0]), args)
3996 bytes_fspath = FakePath(bytes_filename)
3997 fd = os.open(FakePath(str_filename), os.O_WRONLY|os.O_CREAT)
4001 int_fspath = FakePath(fd)
4002 str_fspath = FakePath(str_filename)
4037 os.stat(FakePath(2))
4039 os.stat(FakePath(2.34))
4041 os.stat(FakePath(object()))
4446 pathlike = FakePath(p)
4453 self.assertEqual('#feelthegil', self.fspath(FakePath('#feelthegil')))
4454 self.assertTrue(issubclass(FakePath, os.PathLike))
4455 self.assertTrue(isinstance(FakePath('x'), os.PathLike))
4467 self.assertRaises(TypeError, self.fspath, FakePath(42))
4474 FakePath(ZeroDivisionError()))
4481 self.assertFalse(issubclass(FakePath, A))
4482 self.assertTrue(issubclass(FakePath, os.PathLike))