From 882d0ff28f71c6a22289a8345a24462665a05147 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Tue, 16 Feb 2021 13:10:11 -0700 Subject: [PATCH] test: install package before tests deps in unit_prev_versions (#703) 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 --- noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index adce2527c..7bc1af24d 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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" )