File: 0001-disable-test_set_default_verify_paths-since-it-tries.patch

package info (click to toggle)
pyopenssl 25.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,252 kB
  • sloc: python: 8,292; makefile: 116
file content (20 lines) | stat: -rw-r--r-- 686 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Andrey Rakhmatullin <wrar@debian.org>
Date: Fri, 17 Jan 2025 23:04:12 +0500
Subject: disable test_set requiring network access

---
 tests/test_ssl.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/test_ssl.py b/tests/test_ssl.py
index bcad6d9..f67432e 100644
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -1309,6 +1309,7 @@ class TestContext:
         # internet which has such a certificate.  Connecting to the network
         # in a unit test is bad, but it's the only way I can think of to
         # really test this. -exarkun
+        return
         context = Context(SSLv23_METHOD)
         context.set_default_verify_paths()
         context.set_verify(