File: test_http2_probe_blocked_per_thread-requires_network.patch

package info (click to toggle)
python-urllib3 2.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,340 kB
  • sloc: python: 26,167; makefile: 122; javascript: 92; sh: 11
file content (23 lines) | stat: -rw-r--r-- 818 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Colin Watson <cjwatson@debian.org>
Date: Tue, 12 Nov 2024 23:47:03 +0000
Subject: Mark test_http2_probe_blocked_per_thread with requires_network

It fails if it can't connect to `TARPIT_HOST`.

Last-Update: 2024-11-12
---
 test/with_dummyserver/test_https.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/with_dummyserver/test_https.py b/test/with_dummyserver/test_https.py
index 95d8970..dbe389e 100644
--- a/test/with_dummyserver/test_https.py
+++ b/test/with_dummyserver/test_https.py
@@ -1049,6 +1049,7 @@ class BaseTestHTTPS(HTTPSHypercornDummyServerTestCase):
         finally:
             urllib3.http2.extract_from_urllib3()
 
+    @requires_network()
     def test_http2_probe_blocked_per_thread(self) -> None:
         state, current_thread, last_action = None, None, time.perf_counter()