File tree Expand file tree Collapse file tree 2 files changed +3
-26
lines changed Expand file tree Collapse file tree 2 files changed +3
-26
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,8 @@ if [ -n "$TEST_ENCRYPTION" ]; then
129
129
130
130
if [ " Windows_NT" = " $OS " ]; then # Magic variable in cygwin
131
131
$PYTHON -m pip install -U setuptools
132
+ # PYTHON-2808 Ensure this machine has the CA cert for google KMS.
133
+ powershell.exe " Invoke-WebRequest -URI https://oauth2.googleapis.com/" > /dev/null || true
132
134
fi
133
135
134
136
if [ -z " $LIBMONGOCRYPT_URL " ]; then
@@ -171,10 +173,6 @@ if [ -n "$TEST_ENCRYPTION" ]; then
171
173
. $DRIVERS_TOOLS /.evergreen/csfle/set-temp-creds.sh
172
174
173
175
# Start the mock KMS servers.
174
- if [ " $OS " = " Windows_NT" ]; then
175
- # Remove after BUILD-13574.
176
- python -m pip install certifi
177
- fi
178
176
# The mock KMS server requires Python >=3.5 with boto3.
179
177
IS_PRE_35=$( python -c " import sys; sys.stdout.write('1' if sys.version_info < (3, 5) else '0')" )
180
178
if [ $IS_PRE_35 = " 1" ]; then
Original file line number Diff line number Diff line change 56
56
from test import (unittest ,
57
57
client_context ,
58
58
IntegrationTest ,
59
- PyMongoTestCase ,
60
- SystemCertsPatcher )
59
+ PyMongoTestCase )
61
60
from test .utils import (TestCreator ,
62
61
camel_to_snake_args ,
63
62
OvertCommandListener ,
67
66
wait_until )
68
67
from test .utils_spec_runner import SpecRunner
69
68
70
- try :
71
- import certifi
72
- HAVE_CERTIFI = True
73
- except ImportError :
74
- HAVE_CERTIFI = False
75
-
76
- patcher = None
77
-
78
-
79
- def setUpModule ():
80
- if sys .platform == 'win32' and HAVE_CERTIFI :
81
- # Remove after BUILD-13574.
82
- global patcher
83
- patcher = SystemCertsPatcher (certifi .where ())
84
-
85
-
86
- def tearDownModule ():
87
- if patcher :
88
- patcher .disable ()
89
-
90
69
91
70
def get_client_opts (client ):
92
71
return client ._MongoClient__options
You can’t perform that action at this time.
0 commit comments