File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 24
24
25
25
from pymongo .common import INTERNAL_URI_OPTION_NAME_MAP , validate
26
26
from pymongo .compression_support import _HAVE_SNAPPY
27
- from pymongo .uri_parser import parse_uri
27
+ from pymongo .srv_resolver import _HAVE_DNSPYTHON
28
+ from pymongo .uri_parser import parse_uri , SRV_SCHEME
28
29
from test import clear_warning_registry , unittest
29
30
30
31
@@ -92,7 +93,8 @@ def run_scenario(self):
92
93
compressors = (test .get ('options' ) or {}).get ('compressors' , [])
93
94
if 'snappy' in compressors and not _HAVE_SNAPPY :
94
95
self .skipTest ('This test needs the snappy module.' )
95
-
96
+ if test ['uri' ].startswith (SRV_SCHEME ) and not _HAVE_DNSPYTHON :
97
+ self .skipTest ("This test needs dnspython package." )
96
98
valid = True
97
99
warning = False
98
100
You can’t perform that action at this time.
0 commit comments