1111class CProfileTest (ProfileTest ):
1212 profilerclass = cProfile .Profile
1313 profilermodule = cProfile
14- expected_max_output = "{built-in method max}"
14+ expected_max_output = "{built-in method builtins. max}"
1515
1616 def get_expected_output (self ):
1717 return _ProfileOutput
@@ -72,9 +72,9 @@ def main():
7272profilee.py:88(helper2) <- 6 0.234 0.300 profilee.py:55(helper)
7373 2 0.078 0.100 profilee.py:84(helper2_indirect)
7474profilee.py:98(subhelper) <- 8 0.064 0.080 profilee.py:88(helper2)
75- {built-in method exc_info} <- 4 0.000 0.000 profilee.py:73(helper1)
76- {built-in method hasattr} <- 4 0.000 0.004 profilee.py:73(helper1)
75+ {built-in method builtins.hasattr} <- 4 0.000 0.004 profilee.py:73(helper1)
7776 8 0.000 0.008 profilee.py:88(helper2)
77+ {built-in method sys.exc_info} <- 4 0.000 0.000 profilee.py:73(helper1)
7878{method 'append' of 'list' objects} <- 4 0.000 0.000 profilee.py:73(helper1)"""
7979_ProfileOutput ['print_callees' ] = """\
8080 <string>:1(<module>) -> 1 0.270 1.000 profilee.py:25(testfunc)
@@ -87,12 +87,12 @@ def main():
8787profilee.py:55(helper) -> 4 0.116 0.120 profilee.py:73(helper1)
8888 2 0.000 0.140 profilee.py:84(helper2_indirect)
8989 6 0.234 0.300 profilee.py:88(helper2)
90- profilee.py:73(helper1) -> 4 0.000 0.000 {built-in method exc_info }
90+ profilee.py:73(helper1) -> 4 0.000 0.004 {built-in method builtins.hasattr }
9191profilee.py:84(helper2_indirect) -> 2 0.006 0.040 profilee.py:35(factorial)
9292 2 0.078 0.100 profilee.py:88(helper2)
9393profilee.py:88(helper2) -> 8 0.064 0.080 profilee.py:98(subhelper)
9494profilee.py:98(subhelper) -> 16 0.016 0.016 profilee.py:110(__getattr__)
95- {built-in method hasattr} -> 12 0.012 0.012 profilee.py:110(__getattr__)"""
95+ {built-in method builtins. hasattr} -> 12 0.012 0.012 profilee.py:110(__getattr__)"""
9696
9797if __name__ == "__main__" :
9898 main ()
0 commit comments