diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py index 2b7d297f011..b9fcc59d496 100644 --- a/Lib/test/test_venv.py +++ b/Lib/test/test_venv.py @@ -886,6 +886,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