summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_warnings/data/stacklevel.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-126209: Fix inconsistency of `skip_file_prefixes` in `warnings.warn`'s C ↵Daehee Kim2024-11-121-4/+6
| | | | | | | and Python implementations (GH-126329) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* gh-39615: Add warnings.warn() skip_file_prefixes support (#100840)Gregory P. Smith2023-01-281-1/+7
| | | | | `warnings.warn()` gains the ability to skip stack frames based on code filename prefix rather than only a numeric `stacklevel=` via a new `skip_file_prefixes=` keyword argument.
* Issue #24305: Prevent import subsystem stack frames from being countedLarry Hastings2015-09-061-0/+9
by the warnings.warn(stacklevel=) parameter.