Skip to content

Commit 1054619

Browse files
authored
PYTHON-2906 Fix virtualenv creation for testing Python 3.4 (#735)
1 parent 60af99b commit 1054619

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ echo "Running MONGODB-AWS authentication tests"
1717
# ensure no secrets are printed in log files
1818
set +x
1919

20+
. .evergreen/utils.sh
21+
2022
# load the script
2123
shopt -s expand_aliases # needed for `urlencode` alias
2224
[ -s "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh" ] && source "${PROJECT_DIRECTORY}/prepare_mongodb_aws.sh"
@@ -54,13 +56,8 @@ authtest () {
5456
echo "Running MONGODB-AWS authentication tests with $PYTHON"
5557
$PYTHON --version
5658

57-
$VIRTUALENV -p $PYTHON --system-site-packages --never-download venvaws
58-
if [ "Windows_NT" = "$OS" ]; then
59-
. venvaws/Scripts/activate
60-
else
61-
. venvaws/bin/activate
62-
fi
63-
pip install '.[aws]'
59+
createvirtualenv $PYTHON venvaws
60+
python -m pip install '.[aws]'
6461
python test/auth_aws/test_auth_aws.py
6562
deactivate
6663
rm -rf venvaws

0 commit comments

Comments
 (0)