https://github.com/python/cpython/commit/0d9c123d1ac4f3dd30bdef5182049d9a831eca10
commit: 0d9c123d1ac4f3dd30bdef5182049d9a831eca10
branch: main
author: Petr Viktorin <[email protected]>
committer: encukou <[email protected]>
date: 2024-08-08T11:20:58+02:00
summary:
gh-122744: test_venv: ignore pip's complaint about missing ssl (GH-122776)
files:
M Lib/test/test_venv.py
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
index 2b7d297f011741..b9fcc59d49668c 100644
--- a/Lib/test/test_venv.py
+++ b/Lib/test/test_venv.py
@@ -886,6 +886,14 @@ def do_test_with_pip(self, system_site_packages):
err = re.sub("^(WARNING: )?The directory .* or its parent directory "
"is not owned or is not writable by the current user.*$",
"",
err, flags=re.MULTILINE)
+ # Ignore warning about missing optional module:
+ try:
+ import ssl
+ except ImportError:
+ err = re.sub(
+ "^WARNING: Disabling truststore since ssl support is missing$",
+ "",
+ err, flags=re.MULTILINE)
self.assertEqual(err.rstrip(), "")
# Being fairly specific regarding the expected behaviour for the
# initial bundling phase in Python 3.4. If the output changes in
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]