Skip to content

Commit 31cd753

Browse files
committed
PYTHON-2431 Fix MONGODB-AWS auth tests on macOS (#521)
(cherry picked from commit 22a7e80)
1 parent 9074ede commit 31cd753

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.evergreen/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,7 @@ axes:
15681568
variables:
15691569
skip_EC2_auth_test: true
15701570
skip_ECS_auth_test: true
1571-
python3_binary: python3
1571+
python3_binary: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3
15721572
libmongocrypt_url: https://s3.amazonaws.com/mciuploads/libmongocrypt/macos/master/latest/libmongocrypt.tar.gz
15731573
- id: rhel62
15741574
display_name: "RHEL 6.2 (x86_64)"

.evergreen/run-mongodb-aws-test.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ fi
3939
# show test output
4040
set -x
4141

42-
VIRTUALENV=$(command -v virtualenv)
42+
# Workaround macOS python 3.9 incompatibility with system virtualenv.
43+
if [ $(uname -s) = "Darwin" ]; then
44+
VIRTUALENV="/Library/Frameworks/Python.framework/Versions/3.9/bin/python3 -m virtualenv"
45+
else
46+
VIRTUALENV=$(command -v virtualenv)
47+
fi
4348

4449
authtest () {
4550
if [ "Windows_NT" = "$OS" ]; then

0 commit comments

Comments
 (0)