Lines Matching full:py
49 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
50 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
51 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
53 (1, 2, (('a.py', 5), ('b.py', 4)), 3),
55 (2, 66, (('b.py', 1),), 1),
62 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
63 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
64 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
66 (2, 2, (('a.py', 5), ('b.py', 4)), 3),
67 (2, 5000, (('a.py', 5), ('b.py', 4)), 3),
69 (4, 400, (('c.py', 578),), 1),
382 raw_traces = [(0, 5, (('a.py', 2),), 10)]
399 self.assertEqual(trace.traceback[0].filename, 'a.py')
404 filter1 = tracemalloc.Filter(False, "b.py")
405 filter2 = tracemalloc.Filter(True, "a.py", 2)
406 filter3 = tracemalloc.Filter(True, "a.py", 5)
410 # exclude b.py
413 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
414 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
415 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
416 (1, 2, (('a.py', 5), ('b.py', 4)), 3),
423 # only include two lines of a.py
426 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
427 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
428 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
429 (1, 2, (('a.py', 5), ('b.py', 4)), 3),
442 filter1 = tracemalloc.Filter(False, "a.py", domain=1)
443 filter2 = tracemalloc.Filter(True, "a.py", domain=1)
447 # exclude a.py of domain 1
450 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
451 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
452 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
453 (2, 66, (('b.py', 1),), 1),
460 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
461 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
462 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
463 (2, 66, (('b.py', 1),), 1),
475 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
476 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
477 (0, 10, (('a.py', 2), ('b.py', 4)), 3),
478 (1, 2, (('a.py', 5), ('b.py', 4)), 3),
479 (2, 66, (('b.py', 1),), 1),
491 tb_a_2 = traceback_lineno('a.py', 2)
492 tb_a_5 = traceback_lineno('a.py', 5)
493 tb_b_1 = traceback_lineno('b.py', 1)
494 tb_c_578 = traceback_lineno('c.py', 578)
526 tb_a = traceback_filename('a.py')
527 tb_b = traceback_filename('b.py')
528 tb_c = traceback_filename('c.py')
558 tb1 = traceback(('a.py', 2), ('b.py', 4))
559 tb2 = traceback(('a.py', 5), ('b.py', 4))
560 tb3 = traceback(('b.py', 1))
571 tb5 = traceback(('c.py', 578))
595 tb_a = traceback_filename('a.py')
596 tb_b = traceback_filename('b.py')
597 tb_a_2 = traceback_lineno('a.py', 2)
598 tb_a_5 = traceback_lineno('a.py', 5)
599 tb_b_1 = traceback_lineno('b.py', 1)
600 tb_b_4 = traceback_lineno('b.py', 4)
623 self.assertEqual(str(trace), 'b.py:4: 10 B')
625 self.assertEqual(str(traceback), 'b.py:4')
627 self.assertEqual(str(frame), 'b.py:4')
634 'b.py:1: size=66 B, count=1, average=66 B')
641 'a.py:5: size=5002 B (+5000 B), count=2 (+1), average=2501 B')
660 [' File "b.py", line 4',
661 ' <b.py, 4>',
662 ' File "a.py", line 2',
663 ' <a.py, 2>'])
666 [' File "a.py", line 2',
667 ' <a.py, 2>'])
670 [' File "b.py", line 4',
671 ' <b.py, 4>'])
674 [' File "a.py", line 2',
675 ' <a.py, 2>',
676 ' File "b.py", line 4',
677 ' <b.py, 4>'])
680 [' File "a.py", line 2',
681 ' <a.py, 2>'])
684 [' File "b.py", line 4',
685 ' <b.py, 4>'])
700 f = tracemalloc.Filter(False, "test.py", 123, True)
702 self.assertEqual(f.filename_pattern, "test.py")
707 … f = tracemalloc.Filter(inclusive=False, filename_pattern="test.py", lineno=123, all_frames=True)
709 self.assertEqual(f.filename_pattern, "test.py")
815 # replace .pyc suffix with .py
816 self.assertTrue(fnmatch('a.pyc', 'a.py'))
817 self.assertTrue(fnmatch('a.py', 'a.pyc'))
824 self.assertTrue(fnmatch('a.pyc', 'a.PY'))
825 self.assertTrue(fnmatch('a.py', 'a.PYC'))
831 self.assertFalse(fnmatch('a.pyc', 'a.PY'))
832 self.assertFalse(fnmatch('a.py', 'a.PYC'))
847 # as of 3.5, .pyo is no longer munged to .py
848 self.assertFalse(fnmatch('a.pyo', 'a.py'))
851 t1 = (("a.py", 2), ("b.py", 3))
852 t2 = (("b.py", 4), ("b.py", 5))
853 t3 = (("c.py", 5), ('<unknown>', 0))
856 f = tracemalloc.Filter(True, "b.py", all_frames=True)
862 f = tracemalloc.Filter(True, "b.py", all_frames=False)
868 f = tracemalloc.Filter(False, "b.py", all_frames=True)
874 f = tracemalloc.Filter(False, "b.py", all_frames=False)