public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-hypercorn] f45: Patch tests for h2 version 4.3.0 and later
Date: Thu, 01 Oct 2026 11:42:07 GMT	[thread overview]
Message-ID: <179085492721.1.15812559615863504634.rpms-python-hypercorn-eb6e062c4502@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-hypercorn
Branch : f45
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=f45

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

                 reply	other threads:[~2026-10-01 11:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179085492721.1.15812559615863504634.rpms-python-hypercorn-eb6e062c4502@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox