diff options
author | Petr Viktorin <encukou@gmail.com> | 2024-08-08 09:20:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-08 09:20:58 (GMT) |
commit | 0d9c123d1ac4f3dd30bdef5182049d9a831eca10 (patch) | |
tree | 82d11cc7c839788c6ee5e9a6074b2bc05e3738f7 | |
parent | acf0d9eae673843e4fdd2e2661fe621b100ac78d (diff) | |
download | cpython-0d9c123d1ac4f3dd30bdef5182049d9a831eca10.zip cpython-0d9c123d1ac4f3dd30bdef5182049d9a831eca10.tar.gz cpython-0d9c123d1ac4f3dd30bdef5182049d9a831eca10.tar.bz2 |
gh-122744: test_venv: ignore pip's complaint about missing ssl (GH-122776)
-rw-r--r-- | Lib/test/test_venv.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py index 2b7d297..b9fcc59 100644 --- a/Lib/test/test_venv.py +++ b/Lib/test/test_venv.py @@ -886,6 +886,14 @@ class EnsurePipTest(BaseTest): 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 |