Summary
tests.test_security_compat_utils has a failing ALPN normalization assertion in test_alpn_and_policy.
Reproduction
uv run python -m unittest -v tests.test_security_compat_utils
Current result
- Ran: 3 tests
- Failures: 1
- Failing test:
Failure details
At:
tests/test_security_compat_utils.py:17
Assertion:
self.assertIsNone(normalize_alpn(''))
Observed:
normalize_alpn('') returns ''
- failure:
AssertionError: '' is not None
Expected behavior
Clarify and align either:
- implementation: empty ALPN normalizes to
None, or
- test expectation: empty ALPN normalizes to empty string.
Acceptance criteria
- Behavior contract for empty ALPN input is explicit.
uv run python -m unittest -v tests.test_security_compat_utils passes.
Summary
tests.test_security_compat_utilshas a failing ALPN normalization assertion intest_alpn_and_policy.Reproduction
Current result
test_alpn_and_policyFailure details
At:
tests/test_security_compat_utils.py:17Assertion:
Observed:
normalize_alpn('')returns''AssertionError: '' is not NoneExpected behavior
Clarify and align either:
None, orAcceptance criteria
uv run python -m unittest -v tests.test_security_compat_utilspasses.