8000 bpo-37664: Update regex for ignoring cache warning on some buildbots … · python/cpython@0225d58 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0225d58

Browse files
bpo-37664: Update regex for ignoring cache warning on some buildbots (GH-14960)
(cherry picked from commit b1eb20e) Co-authored-by: Steve Dower <steve.dower@python.org>
1 parent 9194a20 commit 0225d58

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/test_venv.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,9 @@ def do_test_with_pip(self, system_site_packages):
438438
# Please check the permissions and owner of that directory. If
439439
# executing pip with sudo, you may want sudo's -H flag."
440440
# where $HOME is replaced by the HOME environment variable.
441-
err = re.sub("^The directory .* or its parent directory is not owned "
442-
"by the current user .*$", "", err, flags=re.MULTILINE)
441+
err = re.sub("^(WARNING: )?The directory .* or its parent directory "
442+
"is not owned by the current user .*$", "",
443+
err, flags=re.MULTILINE)
443444
self.assertEqual(err.rstrip(), "")
444445
# Being fairly specific regarding the expected behaviour for the
445446
# initial bundling phase in Python 3.4. If the output changes in

0 commit comments

Comments
 (0)
0