Searched refs:FakePath (Results 1 – 13 of 13) sorted by relevance
/third_party/python/Lib/test/ |
D | test_os.py | 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) [all …]
|
D | test_ntpath.py | 8 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'),
|
D | test_posixpath.py | 9 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'),
|
D | test_genericpath.py | 13 from test.support.os_helper import FakePath 539 self.file_path = FakePath(os_helper.TESTFN)
|
D | test_sax.py | 28 from test.support.os_helper import FakePath, TESTFN 192 self.check_parse(FakePath(TESTFN)) 411 prep = prepare_input_source(FakePath(self.file))
|
D | test_compile.py | 11 from test.support.os_helper import FakePath 737 compile("42", FakePath("test_compile_pathlike"), "single")
|
D | test_subprocess.py | 27 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)
|
D | test_io.py | 47 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")
|
D | test_pathlib.py | 16 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")))
|
D | test_shutil.py | 34 from test.support.os_helper import TESTFN, FakePath 1590 self.check_unpack_archive_with_converter(format, FakePath)
|
/third_party/python/Lib/test/test_asyncio/ |
D | test_subprocess.py | 630 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/ |
D | os_helper.py | 473 class FakePath: class
|
/third_party/python/Doc/library/ |
D | test.rst | 1353 .. class:: FakePath(path)
|