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 2626sys .path [0 :0 ] = ["" ]
2727
2828import pymongo
29- from pymongo .ssl_support import HAS_SNI
29+ from pymongo .ssl_support import _has_sni
3030
3131pytestmark = 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
You can’t perform that action at this time.
0 commit comments