mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
[3.12] gh-122744: test_venv: ignore pip's complaint about missing ssl (GH-122776) (GH-122822)
(cherry picked from commit 0d9c123d1a
)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
This commit is contained in:
parent
f2cc8ad989
commit
c536f59c62
1 changed files with 8 additions and 0 deletions
|
@ -782,6 +782,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue