Changeset 391 for python/trunk/Lib/test/test_pstats.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/test/test_pstats.py
r2 r391 11 11 """pstats.add_callers should combine the call results of both target 12 12 and source by adding the call time. See issue1269.""" 13 # new format: used by the cProfile module 13 14 target = {"a": (1, 2, 3, 4)} 14 15 source = {"a": (1, 2, 3, 4), "b": (5, 6, 7, 8)} 15 16 new_callers = pstats.add_callers(target, source) 16 17 self.assertEqual(new_callers, {'a': (2, 4, 6, 8), 'b': (5, 6, 7, 8)}) 18 # old format: used by the profile module 19 target = {"a": 1} 20 source = {"a": 1, "b": 5} 21 new_callers = pstats.add_callers(target, source) 22 self.assertEqual(new_callers, {'a': 2, 'b': 5}) 17 23 18 24
Note:
See TracChangeset
for help on using the changeset viewer.