Skip to content

Commit 1449f5d

Browse files
committed
fix check
1 parent ba76e7b commit 1449f5d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/asynchronous/test_encryption.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
from pymongo.asynchronous.collection import AsyncCollection
4242
from pymongo.asynchronous.helpers import anext
4343
from pymongo.daemon import _spawn_daemon
44-
from pymongo.pyopenssl_context import IS_PYOPENSSL
44+
from pymongo.ssl_context import _ssl
4545

4646
sys.path[0:0] = [""]
4747

@@ -2922,7 +2922,7 @@ async def _test(self, provider, master_key):
29222922
await self.client_encryption.create_data_key(provider, master_key=master_key)
29232923

29242924
async def test_kms_retry(self):
2925-
if IS_PYOPENSSL:
2925+
if _ssl.IS_PYOPENSSL:
29262926
self.skipTest(
29272927
"PyOpenSSL does not support a required method for this test, Connection.makefile"
29282928
)

test/test_encryption.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import pytest
4040

4141
from pymongo.daemon import _spawn_daemon
42-
from pymongo.pyopenssl_context import IS_PYOPENSSL
42+
from pymongo.ssl_context import _ssl
4343
from pymongo.synchronous.collection import Collection
4444
from pymongo.synchronous.helpers import next
4545

@@ -2904,7 +2904,7 @@ def _test(self, provider, master_key):
29042904
self.client_encryption.create_data_key(provider, master_key=master_key)
29052905

29062906
def test_kms_retry(self):
2907-
if IS_PYOPENSSL:
2907+
if _ssl.IS_PYOPENSSL:
29082908
self.skipTest(
29092909
"PyOpenSSL does not support a required method for this test, Connection.makefile"
29102910
)

0 commit comments

Comments
 (0)