forked from pool/python-pyOpenSSL
- Skip test_client_receives_servers_data failing with openssl 3.6.0
and rewrite tests exclusion to be more atomic OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOpenSSL?expand=0&rev=131
This commit is contained in:
35
skip-networked-test.patch
Normal file
35
skip-networked-test.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
Index: pyopenssl-25.0.0/tests/test_ssl.py
|
||||
===================================================================
|
||||
--- pyopenssl-25.0.0.orig/tests/test_ssl.py
|
||||
+++ pyopenssl-25.0.0/tests/test_ssl.py
|
||||
@@ -1303,6 +1303,7 @@ class TestContext:
|
||||
reason="set_default_verify_paths appears not to work on Windows. "
|
||||
"See LP#404343 and LP#404344.",
|
||||
)
|
||||
+ @pytest.mark.network
|
||||
def test_set_default_verify_paths(self) -> None:
|
||||
"""
|
||||
`Context.set_default_verify_paths` causes the platform-specific CA
|
||||
Index: pyopenssl-25.0.0/setup.cfg
|
||||
===================================================================
|
||||
--- pyopenssl-25.0.0.orig/setup.cfg
|
||||
+++ pyopenssl-25.0.0/setup.cfg
|
||||
@@ -11,4 +11,3 @@ doc_files = doc/_build/html
|
||||
[egg_info]
|
||||
tag_build =
|
||||
tag_date = 0
|
||||
-
|
||||
Index: pyopenssl-25.0.0/pyproject.toml
|
||||
===================================================================
|
||||
--- pyopenssl-25.0.0.orig/pyproject.toml
|
||||
+++ pyopenssl-25.0.0/pyproject.toml
|
||||
@@ -39,6 +39,9 @@ ignore_missing_imports = true
|
||||
[tool.pytest.ini_options]
|
||||
addopts = "-r s --strict-markers"
|
||||
testpaths = ["tests"]
|
||||
+markers = [
|
||||
+ "network: test case requires network connection",
|
||||
+]
|
||||
|
||||
[tool.ruff]
|
||||
lint.select = ['E', 'F', 'I', 'W', 'UP', 'RUF']
|
||||
Reference in New Issue
Block a user