Skip to content

Commit 536f189

Browse files
committed
fix test
1 parent 74ca8be commit 536f189

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/atlas/test_connection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
sys.path[0:0] = [""]
2727

2828
import pymongo
29-
from pymongo.ssl_support import HAS_SNI
29+
from pymongo.ssl_support import _has_sni
3030

3131
pytestmark = pytest.mark.atlas_connect
3232

@@ -57,7 +57,7 @@ def connect(self, uri):
5757
# No auth error
5858
client.test.test.count_documents({})
5959

60-
@unittest.skipUnless(HAS_SNI, "Free tier requires SNI support")
60+
@unittest.skipUnless(_has_sni(True), "Free tier requires SNI support")
6161
def test_free_tier(self):
6262
self.connect(URIS["ATLAS_FREE"])
6363

@@ -80,7 +80,7 @@ def connect_srv(self, uri):
8080
self.connect(uri)
8181
self.assertIn("mongodb+srv://", uri)
8282

83-
@unittest.skipUnless(HAS_SNI, "Free tier requires SNI support")
83+
@unittest.skipUnless(_has_sni(True), "Free tier requires SNI support")
8484
def test_srv_free_tier(self):
8585
self.connect_srv(URIS["ATLAS_SRV_FREE"])
8686

0 commit comments

Comments
 (0)