Skip to content

Commit

Permalink
pythongh-122744: test_venv: ignore pip's complaint about missing ssl (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
encukou authored and blhsing committed Aug 22, 2024
1 parent f680a69 commit ed4c919
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 @@ -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
Expand Down

0 comments on commit ed4c919

Please sign in to comment.