summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_frame.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-125590: Allow FrameLocalsProxy to delete and pop keys from extra locals ↵Tian Gao2024-10-211-2/+28
| | | | (#125616)
* gh-124513: Check args in framelocalsproxy_new() (#124515)Victor Stinner2024-09-251-0/+21
| | | | Fix a crash in FrameLocalsProxy constructor: check the number of arguments.
* gh-120906: Support arbitrary hashable keys in FrameLocalsProxy (GH-122309)Petr Viktorin2024-07-301-0/+127
| | | Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
* GH-120097: Make FrameLocalsProxy a mapping (#120101)Mark Shannon2024-06-191-0/+12
| | | | | * Register FrameLocalsProxy as a subclass of collections.abc.Mapping * Allow FrameLocalsProxy to matching mapping patterns
* gh-120417: Remove unused imports in tests (part 2) (#120630)Victor Stinner2024-06-171-3/+1
|
* gh-118921: Add `copy()` method for `FrameLocalsProxy` (#118923)Tian Gao2024-05-101-3/+9
|
* gh-74929: Remove undesirable DECREF in PEP 667 implementation (#118583)Tian Gao2024-05-051-0/+15
| | | | With tests.
* gh-74929: Implement PEP 667 (GH-115153)Tian Gao2024-05-041-11/+175
|
* GH-116098: Remove dead frame object creation code (GH-116687)Tian Gao2024-03-121-65/+0
|
* GH-112354: Initial implementation of warm up on exits and trace-stitching ↵Mark Shannon2024-02-201-0/+1
| | | | (GH-114142)
* gh-112529: Make the GC scheduling thread-safe (#114880)Sam Gross2024-02-161-1/+2
| | | | | | | | | | The GC keeps track of the number of allocations (less deallocations) since the last GC. This buffers the count in thread-local state and uses atomic operations to modify the per-interpreter count. The thread-local buffering avoids contention on shared state. A consequence is that the GC scheduling is not as precise, so "test_sneaky_frame_object" is skipped because it requires that the GC be run exactly after allocating a frame object.
* gh-115020: Remove a debugging print in test_frame (GH-115021)Kirill Podoprigora2024-02-051-1/+0
|
* gh-113939: Frame clear, clear locals (#113940)Albert Zeyer2024-01-311-0/+22
|
* gh-79932: raise exception if frame.clear() is called on a suspended frame ↵Irit Katriel2023-11-071-6/+9
| | | | (#111792)
* Fix typos in docs and comments (#109619)Heinz-Alexander Fuetterer2023-09-201-1/+1
|
* GH-100126: Skip incomplete frames in more places (GH-100613)Brandt Bucher2023-01-091-0/+21
|
* gh-99110: Initialize `frame->previous` in init_frame to fix segmentation ↵Bill Fisher2022-12-231-0/+9
| | | | fault when accessing `frame.f_back` (#100182)
* GH-99729: Unlink frames before clearing them (GH-100030)Brandt Bucher2022-12-061-0/+42
|
* gh-91248: Optimize PyFrame_GetVar() (#99252)Victor Stinner2022-11-131-0/+6
| | | | PyFrame_GetVar() no longer creates a temporary dictionary to get a variable.
* gh-91248: Add PyFrame_GetVar() function (#95712)Victor Stinner2022-11-081-0/+35
| | | | | | Add PyFrame_GetVar() and PyFrame_GetVarString() functions to get a frame variable by its name. Move PyFrameObject C API tests from test_capi to test_frame.
* gh-97922: Run the GC only on eval breaker (#97920)Pablo Galindo Salgado2022-10-081-1/+1
|
* GH-97002: Prevent `_PyInterpreterFrame`s from backing more than one ↵Brandt Bucher2022-10-061-0/+65
| | | | `PyFrameObject` (GH-97996)
* Fix ResourceWarning in test.test_frame (GH-96831)Dennis Sweeney2022-09-151-16/+19
|
* GH-95818: Skip incomplete frames in `PyThreadState_GetFrame` (GH-95886)Mark Shannon2022-08-111-0/+22
|
* Do not clear globals or builtins when calling clear() on a frame object. ↵Mark Shannon2021-06-171-0/+13
| | | | Reverts behavior to that of 3.10 and earlier. (GH-26768)
* bpo-42823: Fix frame lineno when frame.f_trace is set (GH-24099)Mark Shannon2021-01-051-0/+21
| | | | | | | | | * Add test for frame.f_lineno with/without tracing. * Make sure that frame.f_lineno is correct regardless of whether frame.f_trace is set. * Update importlib * Add NEWS
* bpo-40462: fix variable and function names (GH-19832)Furkan Önder2020-05-011-1/+1
| | | Automerge-Triggered-By: @vstinner
* bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. ↵Zackery Spytz2018-12-171-4/+6
| | | | (GH-11175)
* bpo-32468: Better frame repr() (#5067)Antoine Pitrou2017-12-311-0/+41
| | | | bpo-32468: Better frame repr()
* Remove unused imports.Serhiy Storchaka2016-12-161-2/+0
|
* Issue #21741: Update 147 test modules to use test discovery.Zachary Ware2015-04-131-4/+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.
* Issue #21897: Fix a crash with the f_locals attribute with closure variables ↵Antoine Pitrou2014-07-051-0/+52
| | | | when frame.clear() has been called.
* Issue #18665: fix typos. Patch by Vajrasky Kok.Antoine Pitrou2013-08-061-1/+1
|
* Issue #18666: improve test_frame a bit. Patch by Vajrasky Kok.Antoine Pitrou2013-08-061-0/+3
|
* Followup to 862ab99ab570: I forgot to add the magnificent test_frame.py.Antoine Pitrou2013-08-051-0/+113