Home | History | Annotate | Download | only in test

Lines Matching refs:Trace

8 import trace
9 from trace import Trace
106 self.tracer = Trace(count=1, trace=0, countfuncs=0, countcallers=0)
181 tracer = Trace(count=1, trace=0, countfuncs=0, countcallers=0)
199 self.tracer = Trace(count=1, trace=0, countfuncs=0, countcallers=0)
224 self.tracer = Trace(count=0, trace=0, countfuncs=1)
254 'pre-existing trace function throws off measurements')
271 self.tracer = Trace(count=0, trace=0, countcallers=1)
275 'pre-existing trace function throws off measurements')
280 ((os.path.splitext(trace.__file__)[0] + '.py', 'trace', 'Trace.runfunc'),
311 tracer = trace.Trace(trace=0, count=1)
325 tracer = trace.Trace(ignoredirs=[sys.base_prefix, sys.base_exec_prefix,
326 libpath], trace=0, count=1)
334 tracer = trace.Trace(trace=0, count=1)
350 modname = trace._fullmodname(sys.modules[modname].__file__)
360 ignore = trace._Ignore(['x', 'y.z'], [jn('foo', 'bar')])
388 # Test also that the cover file for the trace module is not created
390 tracedir = os.path.dirname(os.path.abspath(trace.__file__))
391 tracecoverpath = os.path.join(tracedir, 'trace.cover')
394 argv = '-m trace --count'.split() + [self.codefile]
407 argv = '-m trace --count --missing'.split() + [self.codefile]
422 (b'cannot specify both --listfuncs and (--trace or --count)', '-lc'),
424 (b'must specify one of --trace, --count, --report, --listfuncs, or --trackcalls', '-g'),
429 *_, stderr = assert_python_failure('-m', 'trace', *args)
436 status, stdout, stderr = assert_python_ok('-m', 'trace', '-l', TESTFN)
446 status, trace_stdout, stderr = assert_python_ok('-m', 'trace', '-l', TESTFN)
465 status, stdout, _ = assert_python_ok('-m', 'trace', '-cs', filename)