Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc536f59

Browse files
[3.12]gh-122744: test_venv: ignore pip's complaint about missing ssl (GH-122776) (GH-122822)
(cherry picked from commit0d9c123)Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parentf2cc8ad commitc536f59

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎Lib/test/test_venv.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,14 @@ def do_test_with_pip(self, system_site_packages):
782782
err=re.sub("^(WARNING: )?The directory .* or its parent directory "
783783
"is not owned or is not writable by the current user.*$","",
784784
err,flags=re.MULTILINE)
785+
# Ignore warning about missing optional module:
786+
try:
787+
importssl
788+
exceptImportError:
789+
err=re.sub(
790+
"^WARNING: Disabling truststore since ssl support is missing$",
791+
"",
792+
err,flags=re.MULTILINE)
785793
self.assertEqual(err.rstrip(),"")
786794
# Being fairly specific regarding the expected behaviour for the
787795
# initial bundling phase in Python 3.4. If the output changes in

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp