Skip to content

test: drop the forwarding case from test_proxy_https_target_tls_error (stale after CVE-2026-97687) - #6

Merged
icanhasmath merged 1 commit into
1.26.20.xfrom
1.26.20.x-test-forwarding-tls
Oct 28, 2026
Merged

icanhasmath merged 1 commit into
1.26.20.xfrom
1.26.20.x-test-forwarding-tls

Conversation

@icanhasmath

Copy link
Copy Markdown
Collaborator

Test-only change. No release needed.

test_proxy_https_target_tls_error[https-True] fails on Python 3.9 and 3.10 with DID NOT RAISE MaxRetryError since 1.26.20.post3:

I found this while running the urllib3 suite on 3.9 and 3.10 for ActiveState/pip#15, which vendors 1.26.20.post4. In python:3.10-slim, test_proxy_poolmanager.py now gives 47 passed and 3 skipped. The two test_tunneling_proxy_request_timeout failures also happen on upstream 1.26.20 in that container.

test_proxy_https_target_tls_error[https-True] expected an SSLError when
forwarding an HTTPS request through an HTTPS proxy with a target
ssl_context that trusts nothing.  When forwarding, the client never
makes a TLS connection to the target, so that error only happened
because the target's TLS settings were applied to the proxy connection:
CVE-2026-97687, fixed in 1.26.20.post3.  Since then the case fails
("DID NOT RAISE") on Python 3.9 and 3.10.

Upstream skipped this case as urllib3#2577 (2.7.0) and removed
it together with the CVE-2026-97687 fix in 2.8.0.  Remove it here too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@ezequielp-activestate ezequielp-activestate left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blockers. In python:3.10-slim with tornado 6.1 and trustme, test/with_dummyserver/test_proxy_poolmanager.py gives 1 failed, 49 passed, 3 skipped on 1.26.20.x. The failure is test_proxy_https_target_tls_error[https-True]. On this branch it gives 49 passed, 3 skipped. Upstream matches the description: 2.7.0 skips that case with pytest.skip("... urllib3/urllib3#2577"), and 2.8.0 parametrizes the test on proxy_scheme only, with no forwarding case. On Python 2.7 the HTTPS-proxy cases are skipped on both branches.

@icanhasmath
icanhasmath merged commit 435ffce into 1.26.20.x Oct 28, 2026
2 of 76 checks passed
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.

2 participants