Commit Graph

7 Commits

Author SHA1 Message Date
Victor Stinner 7f86811d55 Issue #12400: test_cprofile now restores correctly the previous sys.stderr
Copy sys.stderr before replacing it, instead of using sys.__stderr__
2011-06-30 00:00:45 +02:00
Antoine Pitrou d05f9ad302 Windows can't remove a file before it is closed 2010-10-29 23:55:55 +00:00
Brett Cannon 5ede149342 Properly close a test file in test_cprofile. 2010-10-29 22:47:04 +00:00
Antoine Pitrou 8e124f3244 Merged revisions 73064 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73064 | antoine.pitrou | 2009-05-30 23:27:00 +0200 (sam., 30 mai 2009) | 4 lines

  Issue #5330: C functions called with keyword arguments were not reported by
  the various profiling modules (profile, cProfile). Patch by Hagen Fürstenau.
........
2009-05-30 21:41:10 +00:00
Benjamin Peterson 6ccc703865 Merged revisions 66677,66700 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66677 | brett.cannon | 2008-09-28 22:41:21 -0500 (Sun, 28 Sep 2008) | 7 lines

  The _lsprof module could crash the interpreter if it was given an external
  timer that did not return a float and a timer was still running when the
  Profiler object was garbage collected.

  Fixes issue 3895.
  Code review by Benjamin Peterson.
........
  r66700 | brett.cannon | 2008-09-30 12:46:03 -0500 (Tue, 30 Sep 2008) | 5 lines

  Fix a refleak introduced by r66677.

  Fix suggested by Amaury Forgeot d'Arc.
  Closes issue #4003.
........
2008-10-07 02:32:59 +00:00
Benjamin Peterson 7d7665384c a trival fix to let test_profile pass if it runs after test_cprofile 2008-10-06 22:05:00 +00:00
Benjamin Peterson 4e299c709b unbreak test_cprofile 2008-10-06 21:03:05 +00:00