File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 26
26
sys .path [0 :0 ] = ["" ]
27
27
28
28
import pymongo
29
- from pymongo .ssl_support import HAS_SNI
29
+ from pymongo .ssl_support import _has_sni
30
30
31
31
pytestmark = pytest .mark .atlas_connect
32
32
@@ -57,7 +57,7 @@ def connect(self, uri):
57
57
# No auth error
58
58
client .test .test .count_documents ({})
59
59
60
- @unittest .skipUnless (HAS_SNI , "Free tier requires SNI support" )
60
+ @unittest .skipUnless (_has_sni ( True ) , "Free tier requires SNI support" )
61
61
def test_free_tier (self ):
62
62
self .connect (URIS ["ATLAS_FREE" ])
63
63
@@ -80,7 +80,7 @@ def connect_srv(self, uri):
80
80
self .connect (uri )
81
81
self .assertIn ("mongodb+srv://" , uri )
82
82
83
- @unittest .skipUnless (HAS_SNI , "Free tier requires SNI support" )
83
+ @unittest .skipUnless (_has_sni ( True ) , "Free tier requires SNI support" )
84
84
def test_srv_free_tier (self ):
85
85
self .connect_srv (URIS ["ATLAS_SRV_FREE" ])
86
86
You can’t perform that action at this time.
0 commit comments