Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b1eb20e

Browse files
authored
bpo-37664: Update regex for ignoring cache warning on some buildbots (GH-14960)
1 parent 3e54b57 commit b1eb20e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/test/test_venv.py

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

0 commit comments

Comments
 (0)