summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2019-07-26 16:06:04 (GMT)
committerGitHub <noreply@github.com>2019-07-26 16:06:04 (GMT)
commitb1eb20e68e30c8ab128f9d63d622f0a8b49dcf34 (patch)
tree4dd66272cff35c87bbd82cb208f9ae4c387880c3
parent3e54b575313c64f541e98216ed079fafed01ff5d (diff)
downloadcpython-b1eb20e68e30c8ab128f9d63d622f0a8b49dcf34.zip
cpython-b1eb20e68e30c8ab128f9d63d622f0a8b49dcf34.tar.gz
cpython-b1eb20e68e30c8ab128f9d63d622f0a8b49dcf34.tar.bz2
bpo-37664: Update regex for ignoring cache warning on some buildbots (GH-14960)
-rw-r--r--Lib/test/test_venv.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
index ea016b5..228aa8d 100644
--- a/Lib/test/test_venv.py
+++ b/Lib/test/test_venv.py
@@ -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