diff --git a/.kokoro/presubmit-against-pubsublite-samples.sh b/.kokoro/presubmit-against-pubsublite-samples.sh index 0962f2c81..a93980bc3 100755 --- a/.kokoro/presubmit-against-pubsublite-samples.sh +++ b/.kokoro/presubmit-against-pubsublite-samples.sh @@ -84,11 +84,11 @@ for file in python-pubsublite/samples/**/requirements.txt; do # Install python-pubsub from source. python -m pip install -e "$ROOT" -q python -m pytest quickstart_test.py + EXIT=$? + deactivate py-3.6 rm -rf py-3.6/ - EXIT=$? - if [[ $EXIT -ne 0 ]]; then RTN=1 echo -e "\n Testing failed: Nox returned a non-zero exit code. \n"