summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys_setprofile.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-102515: Remove unused imports in the `Lib/` directory (#102516)Alex Waygood2023-03-081-1/+0
|
* gh-98257: Make _PyEval_SetTrace() reentrant (#98258)Victor Stinner2022-10-191-6/+2
| | | | | | | | | | Make sys.setprofile() and sys.settrace() functions reentrant. They can no long fail with: RuntimeError("Cannot install a trace function while another trace function is being installed"). Make _PyEval_SetTrace() and _PyEval_SetProfile() functions reentrant, rather than detecting and rejecting reentrant calls. Only delete the reference to function arguments once the new function is fully set, when a reentrant call is safe. Call also _PySys_Audit() earlier.
* gh-94510: Raise on re-entrant calls to sys.setprofile and sys.settrace ↵Pablo Galindo Salgado2022-07-051-0/+39
| | | | | (GH-94511) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-36994: add test for profiling method_descriptor with **kwargs (GH-13461)Jeroen Demeyer2019-05-221-0/+9
| | | | | It adds a missing testcase for bpo-34125. This is testing code which is affected by PEP 590, so missing this test might accidentally break CPython if we screw up with implementing PEP 590.
* bpo-36682: Rename duplicate tests in test_sys_setprofile (GH-12895)Windson yang2019-04-221-2/+2
|
* bpo-34125: Enable profiling of method_descriptor in all cases (GH-8416)jdemeyer2018-09-191-0/+18
| | | | | | `list.append([], None)` was profiled but `list.append([], None, **{})` was not profiled. Enable profiling for later case. https://bugs.python.org/issue34125
* bpo-34126: Fix crashes while profiling invalid calls. (GH-8300)jdemeyer2018-07-211-0/+16
|
* Issue #27171: Fix typos in documentation, comments, and test function namesMartin Panter2016-06-021-1/+1
|
* Issue #21741: Update 147 test modules to use test discovery.Zachary Ware2015-04-131-10/+1
| | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run.
* PEP 479: Use the return-keyword instead of raising StopIteration inside a ↵Raymond Hettinger2014-11-231-1/+0
| | | | generators.
* use assertion methodsBenjamin Peterson2010-10-171-2/+2
|
* disable the garbage collector while collecting traces, so that __del__s ↵Benjamin Peterson2010-10-171-3/+12
| | | | don't get caught
* remove rather pointless testBenjamin Peterson2010-10-171-8/+0
|
* Issue #9315: Renamed test_trace to test_sys_settrace andAlexander Belopolsky2010-07-251-0/+385
test_profilehooks to test_sys_setprofile so that test_trace can be used for testing the trace module and for naming consistency.