4242from test .utils import (EventListener ,
4343 cat_files ,
4444 connected ,
45+ ignore_deprecations ,
4546 remove_all_users )
4647
4748
@@ -99,6 +100,7 @@ def test_no_ssl_module(self):
99100 MongoClient , ssl_certfile = CLIENT_PEM )
100101
101102 @unittest .skipUnless (HAVE_SSL , "The ssl module is not available." )
103+ @ignore_deprecations
102104 def test_config_ssl (self ):
103105 # Tests various ssl configurations
104106 self .assertRaises (ValueError , MongoClient , ssl = 'foo' )
@@ -202,6 +204,7 @@ def test_simple_ssl(self):
202204 self .assertClientWorks (self .client )
203205
204206 @client_context .require_ssl_certfile
207+ @ignore_deprecations
205208 def test_ssl_pem_passphrase (self ):
206209 # Expects the server to be running with server.pem and ca.pem
207210 #
@@ -234,6 +237,7 @@ def test_ssl_pem_passphrase(self):
234237
235238 @client_context .require_ssl_certfile
236239 @client_context .require_no_auth
240+ @ignore_deprecations
237241 def test_cert_ssl_implicitly_set (self ):
238242 # Expects the server to be running with server.pem and ca.pem
239243 #
@@ -257,6 +261,7 @@ def test_cert_ssl_implicitly_set(self):
257261
258262 @client_context .require_ssl_certfile
259263 @client_context .require_no_auth
264+ @ignore_deprecations
260265 def test_cert_ssl_validation (self ):
261266 # Expects the server to be running with server.pem and ca.pem
262267 #
@@ -294,6 +299,7 @@ def test_cert_ssl_validation(self):
294299
295300 @client_context .require_ssl_certfile
296301 @client_context .require_no_auth
302+ @ignore_deprecations
297303 def test_cert_ssl_uri_support (self ):
298304 # Expects the server to be running with server.pem and ca.pem
299305 #
@@ -307,6 +313,7 @@ def test_cert_ssl_uri_support(self):
307313
308314 @client_context .require_ssl_certfile
309315 @client_context .require_no_auth
316+ @ignore_deprecations
310317 def test_cert_ssl_validation_optional (self ):
311318 # Expects the server to be running with server.pem and ca.pem
312319 #
@@ -337,6 +344,7 @@ def test_cert_ssl_validation_optional(self):
337344
338345 @client_context .require_ssl_certfile
339346 @client_context .require_server_resolvable
347+ @ignore_deprecations
340348 def test_cert_ssl_validation_hostname_matching (self ):
341349 # Expects the server to be running with server.pem and ca.pem
342350 #
@@ -404,6 +412,7 @@ def test_cert_ssl_validation_hostname_matching(self):
404412 ** self .credentials ))
405413
406414 @client_context .require_ssl_certfile
415+ @ignore_deprecations
407416 def test_ssl_crlfile_support (self ):
408417 if not hasattr (ssl , 'VERIFY_CRL_CHECK_LEAF' ) or _ssl .IS_PYOPENSSL :
409418 self .assertRaises (
@@ -442,6 +451,7 @@ def test_ssl_crlfile_support(self):
442451
443452 @client_context .require_ssl_certfile
444453 @client_context .require_server_resolvable
454+ @ignore_deprecations
445455 def test_validation_with_system_ca_certs (self ):
446456 # Expects the server to be running with server.pem and ca.pem.
447457 #
@@ -559,6 +569,7 @@ def test_wincertstore(self):
559569
560570 @client_context .require_auth
561571 @client_context .require_ssl_certfile
572+ @ignore_deprecations
562573 def test_mongodb_x509_auth (self ):
563574 host , port = client_context .host , client_context .port
564575 ssl_client = MongoClient (
@@ -667,6 +678,7 @@ def test_mongodb_x509_auth(self):
667678 self .fail ("Invalid certificate accepted." )
668679
669680 @client_context .require_ssl_certfile
681+ @ignore_deprecations
670682 def test_connect_with_ca_bundle (self ):
671683 def remove (path ):
672684 try :
0 commit comments