diff --git a/.evergreen/utils.sh b/.evergreen/utils.sh index 17f5d8a1d1..faecde05fd 100755 --- a/.evergreen/utils.sh +++ b/.evergreen/utils.sh @@ -6,12 +6,12 @@ find_python3() { PYTHON="" # Find a suitable toolchain version, if available. if [ "$(uname -s)" = "Darwin" ]; then - PYTHON="/Library/Frameworks/Python.Framework/Versions/Current/bin/python3" + PYTHON="/Library/Frameworks/Python.Framework/Versions/3.9/bin/python3" elif [ "Windows_NT" = "${OS:-}" ]; then # Magic variable in cygwin - PYTHON="C:/python/Current/python.exe" + PYTHON="C:/python/Python39/python.exe" else # Prefer our own toolchain, fall back to mongodb toolchain if it has Python 3.9+. - if [ -f "/opt/python/Current/bin/python3" ]; then + if [ -f "/opt/python/3.9/bin/python3" ]; then PYTHON="/opt/python/Current/bin/python3" elif is_python_39 "$(command -v /opt/mongodbtoolchain/v5/bin/python3)"; then PYTHON="/opt/mongodbtoolchain/v5/bin/python3" diff --git a/test/auth_oidc/test_auth_oidc.py b/test/auth_oidc/test_auth_oidc.py index 0c8431a1e8..7dbf817cce 100644 --- a/test/auth_oidc/test_auth_oidc.py +++ b/test/auth_oidc/test_auth_oidc.py @@ -242,9 +242,9 @@ def test_1_6_allowed_hosts_blocked(self): authmechanismproperties=props, connect=False, ) - # Assert that a find operation fails with a client-side error. - with self.assertRaises(ConfigurationError): - client.test.test.find_one() + # Assert that a find operation fails with a client-side error. + with self.assertRaises(ConfigurationError): + client.test.test.find_one() # Close the client. client.close()