Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 3714eda

Browse files
committed
fix: resolve issue where pre-release tests may incorrectly fail
1 parent d20dd28 commit 3714eda

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gapic/templates/noxfile.py.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,8 @@ def prerelease_deps(session, protobuf_implementation):
456456
session.skip("cpp implementation is not supported in python 3.11+")
457457

458458
# Install all dependencies
459-
session.install("-e", ".")
459+
# use `--pre` as the pre-release version may have a different set of dependencies
460+
session.install("-e", ".", "--pre")
460461

461462
# Install dependencies for the unit test environment
462463
unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES
@@ -549,7 +550,8 @@ def core_deps_from_source(session, protobuf_implementation):
549550
"""
550551

551552
# Install all dependencies
552-
session.install("-e", ".")
553+
# use `--pre` as the pre-release version may have a different set of dependencies
554+
session.install("-e", ".", "--pre")
553555

554556
# Install dependencies for the unit test environment
555557
unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES

0 commit comments

Comments
 (0)