Lines Matching full:py
48 (0, 10, (('a.py', 2), ('b.py', 4))),
49 (0, 10, (('a.py', 2), ('b.py', 4))),
50 (0, 10, (('a.py', 2), ('b.py', 4))),
52 (1, 2, (('a.py', 5), ('b.py', 4))),
54 (2, 66, (('b.py', 1),)),
61 (0, 10, (('a.py', 2), ('b.py', 4))),
62 (0, 10, (('a.py', 2), ('b.py', 4))),
63 (0, 10, (('a.py', 2), ('b.py', 4))),
65 (2, 2, (('a.py', 5), ('b.py', 4))),
66 (2, 5000, (('a.py', 5), ('b.py', 4))),
68 (4, 400, (('c.py', 578),)),
324 raw_traces = [(0, 5, (('a.py', 2),))]
340 self.assertEqual(trace.traceback[0].filename, 'a.py')
345 filter1 = tracemalloc.Filter(False, "b.py")
346 filter2 = tracemalloc.Filter(True, "a.py", 2)
347 filter3 = tracemalloc.Filter(True, "a.py", 5)
351 # exclude b.py
354 (0, 10, (('a.py', 2), ('b.py', 4))),
355 (0, 10, (('a.py', 2), ('b.py', 4))),
356 (0, 10, (('a.py', 2), ('b.py', 4))),
357 (1, 2, (('a.py', 5), ('b.py', 4))),
364 # only include two lines of a.py
367 (0, 10, (('a.py', 2), ('b.py', 4))),
368 (0, 10, (('a.py', 2), ('b.py', 4))),
369 (0, 10, (('a.py', 2), ('b.py', 4))),
370 (1, 2, (('a.py', 5), ('b.py', 4))),
383 filter1 = tracemalloc.Filter(False, "a.py", domain=1)
384 filter2 = tracemalloc.Filter(True, "a.py", domain=1)
388 # exclude a.py of domain 1
391 (0, 10, (('a.py', 2), ('b.py', 4))),
392 (0, 10, (('a.py', 2), ('b.py', 4))),
393 (0, 10, (('a.py', 2), ('b.py', 4))),
394 (2, 66, (('b.py', 1),)),
401 (0, 10, (('a.py', 2), ('b.py', 4))),
402 (0, 10, (('a.py', 2), ('b.py', 4))),
403 (0, 10, (('a.py', 2), ('b.py', 4))),
404 (2, 66, (('b.py', 1),)),
416 (0, 10, (('a.py', 2), ('b.py', 4))),
417 (0, 10, (('a.py', 2), ('b.py', 4))),
418 (0, 10, (('a.py', 2), ('b.py', 4))),
419 (1, 2, (('a.py', 5), ('b.py', 4))),
420 (2, 66, (('b.py', 1),)),
432 tb_a_2 = traceback_lineno('a.py', 2)
433 tb_a_5 = traceback_lineno('a.py', 5)
434 tb_b_1 = traceback_lineno('b.py', 1)
435 tb_c_578 = traceback_lineno('c.py', 578)
467 tb_a = traceback_filename('a.py')
468 tb_b = traceback_filename('b.py')
469 tb_c = traceback_filename('c.py')
499 tb1 = traceback(('a.py', 2), ('b.py', 4))
500 tb2 = traceback(('a.py', 5), ('b.py', 4))
501 tb3 = traceback(('b.py', 1))
512 tb5 = traceback(('c.py', 578))
536 tb_a = traceback_filename('a.py')
537 tb_b = traceback_filename('b.py')
538 tb_a_2 = traceback_lineno('a.py', 2)
539 tb_a_5 = traceback_lineno('a.py', 5)
540 tb_b_1 = traceback_lineno('b.py', 1)
541 tb_b_4 = traceback_lineno('b.py', 4)
564 self.assertEqual(str(trace), 'b.py:4: 10 B')
566 self.assertEqual(str(traceback), 'b.py:4')
568 self.assertEqual(str(frame), 'b.py:4')
575 'b.py:1: size=66 B, count=1, average=66 B')
582 'a.py:5: size=5002 B (+5000 B), count=2 (+1), average=2501 B')
601 [' File "b.py", line 4',
602 ' <b.py, 4>',
603 ' File "a.py", line 2',
604 ' <a.py, 2>'])
607 [' File "a.py", line 2',
608 ' <a.py, 2>'])
611 [' File "b.py", line 4',
612 ' <b.py, 4>'])
615 [' File "a.py", line 2',
616 ' <a.py, 2>',
617 ' File "b.py", line 4',
618 ' <b.py, 4>'])
621 [' File "a.py", line 2',
622 ' <a.py, 2>'])
625 [' File "b.py", line 4',
626 ' <b.py, 4>'])
641 f = tracemalloc.Filter(False, "test.py", 123, True)
643 self.assertEqual(f.filename_pattern, "test.py")
648 … f = tracemalloc.Filter(inclusive=False, filename_pattern="test.py", lineno=123, all_frames=True)
650 self.assertEqual(f.filename_pattern, "test.py")
756 # replace .pyc suffix with .py
757 self.assertTrue(fnmatch('a.pyc', 'a.py'))
758 self.assertTrue(fnmatch('a.py', 'a.pyc'))
765 self.assertTrue(fnmatch('a.pyc', 'a.PY'))
766 self.assertTrue(fnmatch('a.py', 'a.PYC'))
772 self.assertFalse(fnmatch('a.pyc', 'a.PY'))
773 self.assertFalse(fnmatch('a.py', 'a.PYC'))
788 # as of 3.5, .pyo is no longer munged to .py
789 self.assertFalse(fnmatch('a.pyo', 'a.py'))
792 t1 = (("a.py", 2), ("b.py", 3))
793 t2 = (("b.py", 4), ("b.py", 5))
794 t3 = (("c.py", 5), ('<unknown>', 0))
797 f = tracemalloc.Filter(True, "b.py", all_frames=True)
803 f = tracemalloc.Filter(True, "b.py", all_frames=False)
809 f = tracemalloc.Filter(False, "b.py", all_frames=True)
815 f = tracemalloc.Filter(False, "b.py", all_frames=False)