Skip to content

Commit

Permalink
test: install package before tests deps in unit_prev_versions (#703)
Browse files Browse the repository at this point in the history
One of the test dependencies appears to require `rsa`, which resulted in a `rsa` version incompatible with 2.7 being installed.

Switching the order resolves the issue (`rsa` is installed according to the requirements in `setup.py`)

https://github.com/googleapis/google-auth-library-python/blob/aeab5d07c5538f3d8cce817df24199534572b97d/setup.py#L24-L27
  • Loading branch information
busunkim96 committed Feb 16, 2021
1 parent aeab5d0 commit 882d0ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def unit(session):

@nox.session(python=["2.7"])
def unit_prev_versions(session):
session.install(*TEST_DEPENDENCIES)
session.install(".")
session.install(*TEST_DEPENDENCIES)
session.run(
"pytest", "--cov=google.auth", "--cov=google.oauth2", "--cov=tests", "tests"
)
Expand Down

0 comments on commit 882d0ff

Please sign in to comment.