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

Appearance settings

Commit 0d9c123

Browse filesBrowse files
authored
gh-122744: test_venv: ignore pip's complaint about missing ssl (GH-122776)
1 parent acf0d9e commit 0d9c123
Copy full SHA for 0d9c123

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed

‎Lib/test/test_venv.py

Copy file name to clipboardExpand all lines: Lib/test/test_venv.py
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,14 @@ def do_test_with_pip(self, system_site_packages):
886886
err = re.sub("^(WARNING: )?The directory .* or its parent directory "
887887
"is not owned or is not writable by the current user.*$", "",
888888
err, flags=re.MULTILINE)
889+
# Ignore warning about missing optional module:
890+
try:
891+
import ssl
892+
except ImportError:
893+
err = re.sub(
894+
"^WARNING: Disabling truststore since ssl support is missing$",
895+
"",
896+
err, flags=re.MULTILINE)
889897
self.assertEqual(err.rstrip(), "")
890898
# Being fairly specific regarding the expected behaviour for the
891899
# initial bundling phase in Python 3.4. If the output changes in

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.