Files
parsedmarc/tests
Sean WhalenandClaude Opus 5.5 2986c58b0f Redact httpx2 URLs whenever httpx2 is installed (#939)
_HTTP_URL_CLASSES took httpx2 from dns.query, so it only matched
httpx2.URL when dnspython 2.9+ had imported httpx2. dnspython 2.9
requires Python >= 3.11, so on Python 3.10 CI gets dnspython 2.8 while
httpx2 is still installed (hatch in the [build] extra requires it), and
httpx2.URL arguments on the httpx2 logger went unmasked. Three
TestHttpx2LogRedaction tests failed on 3.10 as a result.

httpx2 is now imported directly behind a ModuleNotFoundError guard.
The new tests re-execute cli.py with dns.query.httpx2 removed and with
httpx2 unimportable, so the regression is caught on every dnspython
version. Also drops the import of dns.query, which nothing uses now.

Follow-up to GHSA-hjr3-rx4c-24cv (unreleased).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 19:32:04 -04:00
..
2026-10-31 17:14:00 -04:00
2026-10-31 17:14:00 -04:00
2026-10-31 17:14:00 -04:00
2026-10-30 20:50:01 -04:00
2026-10-31 17:14:00 -04:00
2026-10-31 17:14:00 -04:00
2026-10-31 17:14:00 -04:00