saltbundlepy-pyopenssl/skip-networked-test.patch

31 lines
962 B
Diff

Index: pyOpenSSL-23.2.0/tests/test_ssl.py
===================================================================
--- pyOpenSSL-23.2.0.orig/tests/test_ssl.py
+++ pyOpenSSL-23.2.0/tests/test_ssl.py
@@ -1252,6 +1252,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):
"""
`Context.set_default_verify_paths` causes the platform-specific CA
Index: pyOpenSSL-23.2.0/setup.cfg
===================================================================
--- pyOpenSSL-23.2.0.orig/setup.cfg
+++ pyOpenSSL-23.2.0/setup.cfg
@@ -1,6 +1,8 @@
[tool:pytest]
addopts = "-r s --strict-markers"
testpaths = tests
+markers =
+ network: test case requires network connection
[metadata]
license_file = LICENSE
@@ -15,4 +17,3 @@ doc_files = doc/_build/html
[egg_info]
tag_build =
tag_date = 0
-