Home
last modified time | relevance | path

Searched refs:start_dir (Results 1 – 25 of 26) sorted by relevance

12

/external/python/cpython2/Lib/unittest/
Dloader.py145 def discover(self, start_dir, pattern='test*.py', top_level_dir=None): argument
172 top_level_dir = start_dir
185 if os.path.isdir(os.path.abspath(start_dir)):
186 start_dir = os.path.abspath(start_dir)
187 if start_dir != top_level_dir:
188 is_not_importable = not os.path.isfile(os.path.join(start_dir, '__init__.py'))
192 __import__(start_dir)
196 the_module = sys.modules[start_dir]
197 top_part = start_dir.split('.')[0]
198 start_dir = os.path.abspath(os.path.dirname((the_module.__file__)))
[all …]
Dmain.py209 start_dir = options.start
214 self.test = loader.discover(start_dir, pattern, top_level_dir)
/external/python/cpython3/Lib/unittest/
Dloader.py242 def discover(self, start_dir, pattern='test*.py', top_level_dir=None): argument
276 top_level_dir = start_dir
291 if os.path.isdir(os.path.abspath(start_dir)):
292 start_dir = os.path.abspath(start_dir)
293 if start_dir != top_level_dir:
294 is_not_importable = not os.path.isfile(os.path.join(start_dir, '__init__.py'))
298 __import__(start_dir)
302 the_module = sys.modules[start_dir]
303 top_part = start_dir.split('.')[0]
305 start_dir = os.path.abspath(
[all …]
D__init__.py78 return loader.discover(start_dir=this_dir, pattern=pattern)
/external/chromium-trace/catapult/common/py_utils/py_utils/
Ddiscover.py15 def DiscoverModules(start_dir, top_level_dir, pattern='*'): argument
27 start_dir = os.path.realpath(start_dir)
31 sub_paths = list(os.walk(start_dir))
76 def DiscoverClasses(start_dir, argument
99 modules = DiscoverModules(start_dir, top_level_dir, pattern)
/external/python/cpython2/Lib/unittest/test/
Dtest_discovery.py165 def _find_tests(start_dir, pattern): argument
166 _find_tests_args.append((start_dir, pattern))
174 start_dir = os.path.abspath('/foo/bar/baz')
177 self.assertEqual(_find_tests_args, [(start_dir, 'pattern')])
236 def discover(self, start_dir, pattern, top_level_dir): argument
237 self.args.append((start_dir, pattern, top_level_dir))
249 def discover(self, start_dir, pattern, top_level_dir): argument
250 self.args.append((start_dir, pattern, top_level_dir))
357 start_dir='foo', pattern='foo.py'
379 loader.discover(start_dir='foo', pattern='foo.py')
[all …]
Dtest_program.py18 def _find_tests(start_dir, pattern): argument
20 self.assertEqual(start_dir, expectedPath)
/external/python/cpython3/Lib/unittest/test/
Dtest_discovery.py335 start_dir=this_dir, pattern=pattern)
398 def _find_tests(start_dir, pattern, namespace=None): argument
399 _find_tests_args.append((start_dir, pattern))
407 start_dir = os.path.abspath('/foo/bar/baz')
410 self.assertEqual(_find_tests_args, [(start_dir, 'pattern')])
636 def discover(self, start_dir, pattern, top_level_dir): argument
637 self.args.append((start_dir, pattern, top_level_dir))
649 def discover(self, start_dir, pattern, top_level_dir): argument
650 self.args.append((start_dir, pattern, top_level_dir))
757 start_dir='foo', pattern='foo.py'
[all …]
D__main__.py11 package_tests = loader.discover(start_dir=this_dir, pattern=pattern,
Dtest_program.py20 def _find_tests(start_dir, pattern): argument
22 self.assertEqual(start_dir, expectedPath)
/external/ltp/lib/tests/
Dtst_tmpdir_test.c52 char *start_dir = getcwd(NULL, PATH_MAX); in main() local
62 strcmp(tmp_dir, start_dir) != 0) { in main()
/external/autotest/tko/
Dutils.py27 def find_toplevel_job_dir(start_dir): argument
34 job_dir = start_dir
/external/python/cpython3/Lib/
Dzipfile.py1122 self._zipfile.start_dir = self._fileobj.tell()
1135 self._zipfile.start_dir = self._fileobj.tell()
1138 self._fileobj.seek(self._zipfile.start_dir)
1228 self.start_dir = self.fp.tell()
1231 self.start_dir = 0
1236 self.fp.seek(self.start_dir)
1244 self.fp.seek(self.start_dir)
1252 self.start_dir = self.fp.tell()
1306 self.start_dir = offset_cd + concat
1307 fp.seek(self.start_dir, 0)
[all …]
/external/python/cpython2/Lib/idlelib/idle_test/
D__init__.py12 package_tests = loader.discover(start_dir=this_dir, pattern='test*.py',
/external/python/cpython3/Lib/idlelib/idle_test/
D__init__.py14 package_tests = loader.discover(start_dir=this_dir, pattern='test*.py',
/external/python/mock/mock/tests/
D__main__.py11 package_tests = loader.discover(start_dir=this_dir, pattern=pattern,
/external/python/cpython3/Lib/unittest/test/testmock/
D__main__.py11 package_tests = loader.discover(start_dir=this_dir, pattern=pattern,
/external/pdfium/core/fxge/
Dcfx_pathdata.cpp77 int start_dir = mid_pos.y > start_pos.y ? 1 : -1; in UpdateLineJoinPoints() local
78 float point_y = mid_pos.y + half_width * start_dir; in UpdateLineJoinPoints()
132 int start_dir = mid_pos.x > start_pos.x ? 1 : -1; in UpdateLineJoinPoints() local
134 if (start_dir == end_dir) in UpdateLineJoinPoints()
/external/ltp/lib/
Dtst_test.c952 const char *start_dir; in add_paths() local
955 start_dir = tst_get_startwd(); in add_paths()
958 SAFE_ASPRINTF(&new_path, "%s::%s", old_path, start_dir); in add_paths()
960 SAFE_ASPRINTF(&new_path, "::%s", start_dir); in add_paths()
/external/python/cpython2/Lib/
Dzipfile.py780 self.fp.seek(self.start_dir, 0)
828 self.start_dir = offset_cd + concat
829 fp.seek(self.start_dir, 0)
Dhtmllib.py312 def start_dir(self, attrs): member in HTMLParser
/external/chromium-trace/catapult/third_party/zipfile/
Dzipfile_2_7_13.py781 self.fp.seek(self.start_dir, 0)
831 self.start_dir = offset_cd + self._start_disk
832 fp.seek(self.start_dir, 0)
/external/python/cpython2/Doc/library/
Dunittest.rst1505 .. method:: discover(start_dir, pattern='test*.py', top_level_dir=None)
1533 *start_dir* can be a dotted module name as well as a directory.
1901 package_tests = loader.discover(start_dir=this_dir, pattern=pattern)
/external/python/cpython3/Doc/library/
Dunittest.rst1694 .. method:: discover(start_dir, pattern='test*.py', top_level_dir=None)
1728 *start_dir* can be a dotted module name as well as a directory.
2181 package_tests = loader.discover(start_dir=this_dir, pattern=pattern)
/external/python/cpython3/Lib/test/support/
D__init__.py216 package_tests = loader.discover(start_dir=pkg_dir,

12