Home
last modified time | relevance | path

Searched refs:FakePath (Results 1 – 13 of 13) sorted by relevance

/third_party/python/Lib/test/
Dtest_os.py70 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)
[all …]
Dtest_ntpath.py8 from test.support.os_helper import FakePath
800 self.file_path = FakePath(os_helper.TESTFN)
815 self.assertEqual(self.path.join('a', FakePath('b'), 'c'),
Dtest_posixpath.py9 from test.support.os_helper import FakePath
691 self.file_path = FakePath(os_helper.TESTFN)
706 self.assertEqual(self.path.join('a', FakePath('b'), 'c'),
Dtest_genericpath.py13 from test.support.os_helper import FakePath
539 self.file_path = FakePath(os_helper.TESTFN)
Dtest_sax.py28 from test.support.os_helper import FakePath, TESTFN
192 self.check_parse(FakePath(TESTFN))
411 prep = prepare_input_source(FakePath(self.file))
Dtest_compile.py11 from test.support.os_helper import FakePath
737 compile("42", FakePath("test_compile_pathlike"), "single")
Dtest_subprocess.py27 from test.support.os_helper import FakePath
358 executable=FakePath(sys.executable))
383 self._assert_python([], executable=FakePath(sys.executable),
434 self._assert_cwd(temp_dir, sys.executable, cwd=FakePath(temp_dir))
1633 path = FakePath(path)
1648 path = FakePath(sys.executable)
Dtest_io.py47 from test.support.os_helper import FakePath
937 check_path_succeeds(FakePath(os_helper.TESTFN))
938 check_path_succeeds(FakePath(os.fsencode(os_helper.TESTFN)))
941 bad_path = FakePath(f.fileno())
945 bad_path = FakePath(None)
949 bad_path = FakePath(FloatingPointError)
955 self.open(FakePath(os_helper.TESTFN), 'rwxa', encoding="utf-8")
Dtest_pathlib.py16 from test.support.os_helper import TESTFN, FakePath
200 P(FakePath("a/b/c"))
204 self.assertEqual(P(P('a'), P('b'), P('c')), P(FakePath("a/b/c")))
Dtest_shutil.py34 from test.support.os_helper import TESTFN, FakePath
1590 self.check_unpack_archive_with_converter(format, FakePath)
/third_party/python/Lib/test/test_asyncio/
Dtest_subprocess.py630 os_helper.FakePath(sys.executable), '-c', 'pass')
633 sys.executable, '-c', 'pass', os_helper.FakePath('.'))
723 os_helper.FakePath(sys.executable), '-c', 'pass')
/third_party/python/Lib/test/support/
Dos_helper.py473 class FakePath: class
/third_party/python/Doc/library/
Dtest.rst1353 .. class:: FakePath(path)