[Python-checkins] r73065 - python/trunk/Lib/test/test_profile.py
antoine.pitrou
python-checkins at python.org
Sat May 30 23:39:25 CEST 2009
Author: antoine.pitrou
Date: Sat May 30 23:39:25 2009
New Revision: 73065
Log:
The test for #5330 wasn't correct.
Modified:
python/trunk/Lib/test/test_profile.py
Modified: python/trunk/Lib/test/test_profile.py
==============================================================================
--- python/trunk/Lib/test/test_profile.py (original)
+++ python/trunk/Lib/test/test_profile.py Sat May 30 23:39:25 2009
@@ -44,7 +44,6 @@
def test_calling_conventions(self):
# Issue #5330: profile and cProfile wouldn't report C functions called
# with keyword arguments. We test all calling conventions.
- prof = self.profilerclass(timer, 0.001)
stmts = [
"[].sort()",
"[].sort(reverse=True)",
@@ -53,6 +52,7 @@
]
for stmt in stmts:
s = StringIO()
+ prof = self.profilerclass(timer, 0.001)
prof.runctx(stmt, globals(), locals())
stats = pstats.Stats(prof, stream=s)
stats.print_stats()
More information about the Python-checkins
mailing list