Skip to content

Commit

Permalink
[3.12] gh-122744: test_venv: ignore pip's complaint about missing ssl (
Browse files Browse the repository at this point in the history
…GH-122776) (GH-122822)

(cherry picked from commit 0d9c123)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
  • Loading branch information
miss-islington and encukou authored Aug 9, 2024
1 parent f2cc8ad commit c536f59
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Lib/test/test_venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,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
Expand Down

0 comments on commit c536f59

Please sign in to comment.