Lines Matching refs:ns
70 self.ns = None
138 if self.ns.quiet:
144 if fails and not self.ns.pgo:
160 ns = _parse_args(sys.argv[1:], **kwargs)
162 if ns.timeout and not hasattr(faulthandler, 'dump_traceback_later'):
165 ns.timeout = None
167 if ns.threshold is not None and gc is None:
169 ns.threshold = None
171 if ns.findleaks:
181 ns.findleaks = False
183 if ns.xmlpath:
187 removepy(ns.args)
189 return ns
194 if self.ns.single:
203 if self.ns.fromfile:
208 with open(os.path.join(support.SAVEDCWD, self.ns.fromfile)) as fp:
220 if self.ns.exclude:
221 for arg in self.ns.args:
225 self.ns.args = []
229 if self.ns.testdir:
230 alltests = findtests(self.ns.testdir, list(), set())
232 alltests = findtests(self.ns.testdir, stdtests, nottests)
234 if not self.ns.fromfile:
235 self.selected = self.tests or self.ns.args or alltests
238 if self.ns.single:
247 if self.ns.start:
249 del self.selected[:self.selected.index(self.ns.start)]
252 % self.ns.start, file=sys.stderr)
254 if self.ns.randomize:
255 if self.ns.random_seed is None:
256 self.ns.random_seed = random.randrange(10000000)
257 random.seed(self.ns.random_seed)
276 support.set_match_tests(self.ns.match_tests)
279 abstest = get_abs_module(self.ns, test)
292 self.ns.verbose = True
293 self.ns.failfast = False
294 self.ns.verbose3 = False
304 self.ns.verbose = True
305 ok = runtest(self.ns, test)
323 if self.ns.pgo:
338 if self.good and not self.ns.quiet:
347 if self.ns.print_slow:
365 if self.skipped and not self.ns.quiet:
381 if self.ns.trace:
403 ns = dict(locals())
404 self.tracer.runctx(cmd, globals=globals(), locals=ns)
405 result = ns['result']
408 result = runtest(self.ns, test)
424 if self.ns.findleaks:
448 if self.ns.fail_env_changed and self.environment_changed:
468 elif self.ns.fail_env_changed and self.environment_changed:
487 if (self.ns.header
488 or not(self.ns.pgo or self.ns.quiet or self.ns.single
489 or self.tests or self.ns.args)):
492 if self.ns.huntrleaks:
493 warmup, repetitions, _ = self.ns.huntrleaks
499 if self.ns.randomize:
500 print("Using random seed", self.ns.random_seed)
502 if self.ns.forever:
511 if self.ns.use_mp:
528 coverdir=self.ns.coverdir)
535 if self.ns.runleaks:
539 if not self.ns.xmlpath and not self.testsuite_xml:
558 xmlpath = os.path.join(support.SAVEDCWD, self.ns.xmlpath)
565 self.ns = self.parse_args(kwargs)
567 if self.ns.tempdir:
568 TEMPDIR = self.ns.tempdir
569 elif self.ns.worker_args:
570 ns_dict, _ = json.loads(self.ns.worker_args)
589 if self.ns.huntrleaks:
590 warmup, repetitions, _ = self.ns.huntrleaks
598 if self.ns.worker_args is not None:
600 run_tests_worker(self.ns.worker_args)
602 if self.ns.wait:
605 support.PGO = self.ns.pgo
607 setup_tests(self.ns)
611 if self.ns.list_tests:
615 if self.ns.list_cases:
622 if self.ns.verbose2 and self.bad:
633 if self.ns.fail_env_changed and self.environment_changed: