Home
last modified time | relevance | path

Searched refs:listdir (Results 1 – 25 of 452) sorted by relevance

12345678910>>...19

/external/python/cpython3/Lib/unittest/test/
Dtest_discovery.py45 original_listdir = os.listdir
47 os.listdir = original_listdir
58 os.listdir = lambda path: path_lists.pop(0)
98 original_listdir = os.listdir
100 os.listdir = original_listdir
109 os.listdir = lambda path: path_lists.pop(0)
136 original_listdir = os.listdir
138 os.listdir = original_listdir
148 os.listdir = lambda path: path_lists.pop(0)
210 original_listdir = os.listdir
[all …]
/external/python/cpython2/Lib/test/
Dtest_dircache.py17 for fname in os.listdir(self.tempdir):
37 entries = dircache.listdir(self.tempdir)
41 self.assertTrue(dircache.listdir(self.tempdir) is entries)
54 entries = dircache.listdir(self.tempdir)
56 self.assertTrue(dircache.listdir(self.tempdir) is entries)
59 self.assertRaises(OSError, dircache.listdir, self.tempdir+"_nonexistent")
Dtest_pep277.py62 for fname in os.listdir(unicode(dirname)):
116 self._apply_failure(os.listdir, name, OSError, False)
143 self._apply_failure(os.listdir, name, OSError, False)
151 f1 = os.listdir(test_support.TESTFN)
152 f2 = os.listdir(unicode(test_support.TESTFN,
/external/python/cpython2/Lib/unittest/test/
Dtest_discovery.py29 original_listdir = os.listdir
31 os.listdir = original_listdir
42 os.listdir = lambda path: path_lists.pop(0)
72 original_listdir = os.listdir
74 os.listdir = original_listdir
84 os.listdir = lambda path: path_lists.pop(0)
183 listdir = os.listdir
184 os.listdir = lambda _: ['test_this_does_not_exist.py']
190 os.listdir = listdir
323 original_listdir = os.listdir
[all …]
/external/python/cpython2/Doc/library/
Ddircache.rst29 .. function:: listdir(path)
31 Return a directory listing of *path*, as gotten from :func:`os.listdir`. Note
32 that unless *path* changes, further call to :func:`listdir` will not re-read the
41 Same as :func:`listdir`. Defined for backwards compatibility.
52 >>> a = dircache.listdir('/')
/external/python/cpython3/Lib/distutils/tests/
Dtest_build_py.py57 files = os.listdir(pkgdest)
64 pyc_files = os.listdir(pycache_dir)
102 found = os.listdir(cmd.build_lib)
104 found = os.listdir(os.path.join(cmd.build_lib, '__pycache__'))
120 found = os.listdir(cmd.build_lib)
122 found = os.listdir(os.path.join(cmd.build_lib, '__pycache__'))
Dtest_build_scripts.py39 built = os.listdir(target)
104 built = os.listdir(target)
/external/python/cpython2/Lib/
Ddircache.py21 def listdir(path): function
30 list = os.listdir(path)
35 opendir = listdir # XXX backward compatibility
/external/trappy/tests/
Dtest_caching.py42 self.assertTrue(cache_dir in os.listdir(trace_dir))
54 self.assertFalse(cache_dir in os.listdir(trace_dir))
204 self.assertEquals(len(os.listdir(cache_dir)), number_of_trace_categories)
207 self.assertEquals(len(os.listdir(cache_dir)), number_of_trace_categories - 1)
211 self.assertEquals(len(os.listdir(cache_dir)), number_of_trace_categories)
/external/python/cpython3/Lib/test/
Dtest_unicode_file_functions.py104 self._apply_failure(os.listdir, name)
118 self._apply_failure(os.listdir, name, self._listdir_failure)
137 self._apply_failure(os.listdir, name)
147 f1 = os.listdir(support.TESTFN.encode(sys.getfilesystemencoding()))
148 f2 = os.listdir(support.TESTFN)
/external/autotest/client/site_tests/logging_UserCrash/
Dlogging_UserCrash.py131 crash_dir_size = len(os.listdir(crash_dir))
150 if crash_dir_size != len(os.listdir(crash_dir)):
153 len(os.listdir(crash_dir)),
241 crash_contents = os.listdir(self._get_crash_dir('root'))
/external/autotest/frontend/tko/
Dpreconfigs.py28 os.listdir(self._get_preconfig_path(['metrics'])))
30 os.listdir(self._get_preconfig_path(['qual'])))
/external/nanopb-c/examples/network_server/
Dclient.c38 bool listdir(int fd, char *path) in listdir() function
110 if (!listdir(sockfd, path)) in main()
/external/chromium-trace/catapult/common/py_vulcanize/py_vulcanize/
Dfake_fs.py35 self._real_listdir = os.listdir
51 os.listdir = self._FakeListDir
61 os.listdir = self._real_listdir
/external/autotest/client/site_tests/logging_UdevCrash/
Dlogging_UdevCrash.py21 for filename in os.listdir(self._SYSTEM_CRASH_DIR):
59 for filename in os.listdir(DRIVER_DIR):
/external/python/cpython2/Demo/tix/samples/
DTree.py43 os.listdir(dir)
69 files = os.listdir(dir)
/external/v8/
Dmerge.py27 new_files = [f for f in os.listdir(args.v8_path) if not f.startswith(".")]
28 current_files = [f for f in os.listdir(AOSP_PATH) if not f.startswith(".")]
/external/python/cpython2/Lib/lib-tk/
DFixTk.py61 for name in os.listdir(prefix):
77 for name in os.listdir(prefix):
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_main.py103 set(os.listdir(self.py3_dest_dir)))
129 self.assertEqual(expected_files, set(os.listdir(self.py3_dest_dir)))
145 set(os.listdir(self.py3_dest_dir)))
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_main.py93 set(os.listdir(self.py3_dest_dir)))
119 self.assertEqual(expected_files, set(os.listdir(self.py3_dest_dir)))
135 set(os.listdir(self.py3_dest_dir)))
/external/python/cpython2/Lib/distutils/tests/
Dtest_sdist.py123 files = os.listdir(dist_folder)
147 result = os.listdir(dist_folder)
160 result = os.listdir(dist_folder)
181 result = os.listdir(dist_folder)
239 files = os.listdir(dist_folder)
Dtest_build_scripts.py39 built = os.listdir(target)
104 built = os.listdir(target)
/external/autotest/utils/
Dpackager.py36 for f in os.listdir(prof_dir):
294 os.listdir(dir_name)
300 names_test = os.listdir(os.path.join(client_dir, 'tests'))
301 names_site_test = os.listdir(os.path.join(client_dir, 'site_tests'))
/external/swiftshader/third_party/LLVM/utils/lit/lit/
DTestFormats.py60 for filename in os.listdir(source_path):
70 for subfilename in os.listdir(filepath):
106 for filename in os.listdir(source_path):
/external/skia/tools/skiaserve/tester/
Dtester.py12 from os import listdir
106 for skp in listdir(skp_dir):

12345678910>>...19