[Python-checkins] bpo-37664: Update regex for ignoring cache warning on some buildbots (GH-14960)

Miss Islington (bot) webhook-mailer at python.org
Fri Jul 26 12:24:47 EDT 2019


https://github.com/python/cpython/commit/c5033901263d64a533ee47a84c6d286a223540c9
commit: c5033901263d64a533ee47a84c6d286a223540c9
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-07-26T09:24:43-07:00
summary:

bpo-37664: Update regex for ignoring cache warning on some buildbots (GH-14960)

(cherry picked from commit b1eb20e68e30c8ab128f9d63d622f0a8b49dcf34)

Co-authored-by: Steve Dower <steve.dower at python.org>

files:
M Lib/test/test_venv.py

diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
index 6aafa1b14c28..e7adbeebe960 100644
--- a/Lib/test/test_venv.py
+++ b/Lib/test/test_venv.py
@@ -451,8 +451,9 @@ def do_test_with_pip(self, system_site_packages):
         #    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



More information about the Python-checkins mailing list