Skip to content

Commit

Permalink
bpo-37664: Update regex for ignoring cache warning on some buildbots (G…
Browse files Browse the repository at this point in the history
…H-14960)

(cherry picked from commit b1eb20e)

Co-authored-by: Steve Dower <steve.dower@python.org>
  • Loading branch information
miss-islington and zooba committed Jul 26, 2019
1 parent 9194a20 commit 0225d58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Lib/test/test_venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,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
Expand Down

0 comments on commit 0225d58

Please sign in to comment.