public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-hypercorn] rawhide: Patch tests for h2 version 4.3.0 and later
@ 2026-10-01 11:38 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-10-01 11:38 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-hypercorn
Branch : rawhide
Commit : eb6e062c45026414199202a515d0d9c09c5fc9f4
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-10-01T12:36:08+01:00
Stats  : +43/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-hypercorn/c/eb6e062c45026414199202a515d0d9c09c5fc9f4?branch=rawhide

Log:
Patch tests for h2 version 4.3.0 and later

---
diff --git a/371.patch b/371.patch
new file mode 100644
index 0000000..c1c3703
--- /dev/null
+++ b/371.patch
@@ -0,0 +1,35 @@
+From 9c1f350e2637cfa0287aad2ae9a5bfd003a1d248 Mon Sep 17 00:00:00 2001
+From: dongjiao <dongjiao@kylinos.cn>
+Date: Thu, 13 Aug 2026 10:54:51 +0800
+Subject: [PATCH] fix(tests): add :protocol pseudo-header for Extended CONNECT
+ in WebSocket tests
+
+---
+ tests/asyncio/test_sanity.py | 1 +
+ tests/trio/test_sanity.py    | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/tests/asyncio/test_sanity.py b/tests/asyncio/test_sanity.py
+index 0d1d0f9..e77e63f 100644
+--- a/tests/asyncio/test_sanity.py
++++ b/tests/asyncio/test_sanity.py
+@@ -203,6 +203,7 @@ async def test_http2_websocket() -> None:
+         stream_id,
+         [
+             (":method", "CONNECT"),
++            (":protocol", "websocket"),
+             (":path", "/"),
+             (":authority", "hypercorn"),
+             (":scheme", "https"),
+diff --git a/tests/trio/test_sanity.py b/tests/trio/test_sanity.py
+index 98387a2..42d7b39 100644
+--- a/tests/trio/test_sanity.py
++++ b/tests/trio/test_sanity.py
+@@ -175,6 +175,7 @@ async def test_http2_websocket(nursery: trio._core._run.Nursery) -> None:
+         stream_id,
+         [
+             (":method", "CONNECT"),
++            (":protocol", "websocket"),
+             (":path", "/"),
+             (":authority", "hypercorn"),
+             (":scheme", "https"),

diff --git a/python-hypercorn.spec b/python-hypercorn.spec
index 793084b..8997577 100644
--- a/python-hypercorn.spec
+++ b/python-hypercorn.spec
@@ -20,6 +20,14 @@ Patch:          0001-Downstream-only-patch-out-coverage-analysis.patch
 # chore: remove unused mock dev dependency
 # https://github.com/pgjones/hypercorn/pull/343
 Patch:          %{url}/pull/343.patch
+# fix(tests): add :protocol pseudo-header for Extended CONNECT in WebSo…
+# https://github.com/pgjones/hypercorn/pull/371
+#
+# Fixes:
+#
+# test_http2_websocket error "Ordinary CONNECT MUST NOT include :scheme or :path"
+# https://github.com/pgjones/hypercorn/issues/370
+Patch:          %{url}/pull/371.patch
 
 BuildSystem:    pyproject
 BuildOption(generate_buildrequires): --extras h3

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-01 11:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-01 11:38 [rpms/python-hypercorn] rawhide: Patch tests for h2 version 4.3.0 and later Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox