bpo-37664: Update regex for ignoring cache warning on some buildbots (GH-14960)
authorSteve Dower <steve.dower@python.org>
Fri, 26 Jul 2019 16:06:04 +0000 (09:06 -0700)
committerGitHub <noreply@github.com>
Fri, 26 Jul 2019 16:06:04 +0000 (09:06 -0700)
Lib/test/test_venv.py

index ea016b59ae2b845c57b072173f8cf8fd9edaafec..228aa8d68ed78c79ab559a88f477be5d6c3fcd69 100644 (file)
@@ -473,8 +473,9 @@ class EnsurePipTest(BaseTest):
         #    Please check the permissions and owner of that directory. If
         #    executing pip with sudo, you may want sudo's -H flag."
         # where $HOME is replaced by the HOME environment variable.
-        err = re.sub("^The directory .* or its parent directory is not owned "
-                     "by the current user .*$", "", err, flags=re.MULTILINE)
+        err = re.sub("^(WARNING: )?The directory .* or its parent directory "
+                     "is not owned by the current user .*$", "",
+                     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