Skip to content

fix: add explicit stacklevel to all warnings.warn() calls#1041

Open
decembercomposer697-hue wants to merge 2 commits into
pytest-dev:masterfrom
decembercomposer697-hue:fix/warning-stacklevel
Open

fix: add explicit stacklevel to all warnings.warn() calls#1041
decembercomposer697-hue wants to merge 2 commits into
pytest-dev:masterfrom
decembercomposer697-hue:fix/warning-stacklevel

Conversation

@decembercomposer697-hue

Copy link
Copy Markdown

7 B028 fixes: all warnings.warn() calls now have explicit stacklevel=2.
✅ 7 unit tests pass

十二月作曲家 added 2 commits June 18, 2026 23:00
When extra media content is a file path (not base64), it was
previously used as-is in the HTML, creating absolute paths that
break when the report is moved. Now resolves relative to the
report's parent directory.
B028: 7 warnings.warn() calls lacked explicit stacklevel, making
deprecation warnings point to the warning call site instead of
the caller's code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant