Skip to content

Commit b28b100

Browse files
authored
fix: upgrade pip in each session (GoogleCloudPlatform#9890)
1 parent 85a730c commit b28b100

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

noxfile-template.py

+3
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ def _session_tests(
194194
if TEST_CONFIG["pip_version_override"]:
195195
pip_version = TEST_CONFIG["pip_version_override"]
196196
session.install(f"pip=={pip_version}")
197+
else:
198+
session.install("--upgrade", "pip")
199+
197200
"""Runs py.test for a particular project."""
198201
concurrent_args = []
199202
if os.path.exists("requirements.txt"):

0 commit comments

Comments
 (0)