You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add coverage for keyword arguments to warnings.warn_explicit #158146
warnings.warn_explicit() accepts its required message, category, filename, and lineno parameters by position or keyword, but test_warnings.WarnTests does not explicitly cover those keyword calls.
CPython already handles this correctly. A RustPython compatibility bug exposed the coverage gap, and a RustPython maintainer suggested adding CPython test coverage.
Add a test to the shared WarnTests class for positional, keyword, and mixed calls with both string messages and warning instances. This exercises the C and pure-Python implementations without changing runtime behavior.
AI assistance: Codex helped prepare the test and this report.
Activity