summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_cprofile.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused imports in tests (GH-14518)Victor Stinner2019-07-011-1/+1
|
* bpo-37069: tests use catch_unraisable_exception() (GH-13762)Victor Stinner2019-06-031-20/+12
| | | | | | | | | | | | | Modify test_coroutines, test_cprofile, test_generators, test_raise, test_ssl and test_yield_from to use support.catch_unraisable_exception() rather than support.captured_stderr(). test_thread: remove test_save_exception_state_on_error() which is now updated. test_unraisable_exception() checks that sys.unraisablehook() is called to handle _thread.start_new_thread() exception. test_cprofile now rely on unittest for test discovery: replace support.run_unittest() with unittest.main().
* bpo-32512: Add -m option to profile for profiling modules (#5132)Mario Corchero2018-11-051-13/+0
| | | | | | | | | The new option in the CLI of the profile module allow to profile executable modules. This change follows the same implementation as the one already present in `cProfile`. As the argument is now present on both modules, move the tests to the common test case to be run with profile as well.
* bpo-23420: Verify the value of '-s' when execute the CLI of cProfile (GH-9925)Stéphane Wirtel2018-10-171-1/+7
| | | | | | Verify the value for the parameter '-s' of the cProfile CLI. Patch by Robert Kuska. Co-authored-by: Robert Kuska <rkuska@gmail.com>
* bpo-29235: Make cProfile.Profile a context manager (GH-6808)Scott Sanderson2018-06-011-0/+27
|
* bpo-21862: Add -m option to cProfile for profiling modules (#4297)Sanyam Khurana2017-11-081-0/+14
| | | | * bpo-21862: Add -m option to cProfile for profiling modules
* Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-241-1/+1
|
* Issue #21863: cProfile now displays the module name of C extension ↵Antoine Pitrou2014-06-281-5/+5
| | | | functions, in addition to their own name.
* touch _lsprof's clear() method for C code coverageChristian Heimes2013-12-051-0/+1
|
* profile/cProfile: add tests for run() and runctx() functionsGiampaolo Rodola'2013-02-121-0/+2
|
* Issue #12400: test_cprofile now restores correctly the previous sys.stderrVictor Stinner2011-06-291-10/+13
| | | | Copy sys.stderr before replacing it, instead of using sys.__stderr__
* Windows can't remove a file before it is closedAntoine Pitrou2010-10-291-1/+1
|
* Properly close a test file in test_cprofile.Brett Cannon2010-10-291-9/+10
|
* Merged revisions 73064 via svnmerge fromAntoine Pitrou2009-05-301-0/+1
| | | | | | | | | | | 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. ........
* Merged revisions 66677,66700 via svnmerge fromBenjamin Peterson2008-10-071-1/+15
| | | | | | | | | | | | | | | | | | | | | | 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. ........
* a trival fix to let test_profile pass if it runs after test_cprofileBenjamin Peterson2008-10-061-3/+7
|
* unbreak test_cprofileBenjamin Peterson2008-10-061-0/+72