diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-05-30 21:39:25 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-05-30 21:39:25 (GMT) |
commit | 4528bcde777f535c5434ce43e8cad43bc1673de2 (patch) | |
tree | 1bc45fea742e84244646d7719e06f60b5207a8be /Lib | |
parent | 46dbe27f7e7a053c9b44155664dc02aa12b0717e (diff) | |
download | cpython-4528bcde777f535c5434ce43e8cad43bc1673de2.zip cpython-4528bcde777f535c5434ce43e8cad43bc1673de2.tar.gz cpython-4528bcde777f535c5434ce43e8cad43bc1673de2.tar.bz2 |
The test for #5330 wasn't correct.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/test/test_profile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_profile.py b/Lib/test/test_profile.py index 421aa1b..0016d51 100755 --- a/Lib/test/test_profile.py +++ b/Lib/test/test_profile.py @@ -44,7 +44,6 @@ class ProfileTest(unittest.TestCase): 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 @@ class ProfileTest(unittest.TestCase): ] 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() |