Skip to content

Commit c2bf2a2

Browse files
committed
Skip one test relevant to our ssl.py patch
1 parent e688d24 commit c2bf2a2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

3.7.patches/01_python_ssl_module_add_android_certificates

+12
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,15 @@ Index: Python-3.7.6/Lib/ssl.py
2020
self.set_default_verify_paths()
2121

2222
if hasattr(_SSLContext, 'minimum_version'):
23+
Index: Python-3.7.6/Lib/test/test_ssl.py
24+
===================================================================
25+
--- Python-3.7.6.orig/Lib/test/test_ssl.py
26+
+++ Python-3.7.6/Lib/test/test_ssl.py
27+
@@ -1601,6 +1601,7 @@ class ContextTests(unittest.TestCase):
28+
@unittest.skipIf(sys.platform == "win32", "not-Windows specific")
29+
@unittest.skipIf(IS_LIBRESSL, "LibreSSL doesn't support env vars")
30+
def test_load_default_certs_env(self):
31+
+ raise unittest.SkipTest("Skipping this test for Python within an Android app")
32+
ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
33+
with support.EnvironmentVarGuard() as env:
34+
env["SSL_CERT_DIR"] = CAPATH

0 commit comments

Comments
 (0)