Skip to content

Commit

Permalink
DRIVERS-2743 skip Python 3.12 (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinAlbs authored Oct 4, 2023
1 parent 43aa583 commit 9df8705
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .evergreen/find-python3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ is_python3() (
# For diagnostic purposes.
echo " - $bin: $version_output"

if ! $("$bin" -c "import sys; exit(sys.version_info[0] == 3 and sys.version_info[1] == 12)"); then
echo "Detected Python 3.12. Skipping due to failures to start mock KMS server. Refer: DRIVERS-2743"
return 1
fi

# Evaluate result of this function.
# Note: Python True (1) and False (0) is treated as fail (1) and success (0)
# by Bash; therefore `is_python3` returns "true" when `v < 3` is false.
Expand Down

0 comments on commit 9df8705

Please sign in to comment.