Skip to content

Commit 36b5aec

Browse files
committed
Disable SSL tests for old Python
- Appveyor error: ` AttributeError: module 'ssl' has no attribute 'PROTOCOL_TLS_CLIENT'`
1 parent 20dd039 commit 36b5aec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/py/RunClientServer.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ def run(self, conf, test_count):
212212
# skip any servers that don't work with SSL
213213
if with_ssl and try_server in SKIP_SSL:
214214
return False
215+
if with_ssl and (sys.version_info < (3,7)):
216+
print('Skipping \'with_ssl\' test since python 3.7 or later is required')
217+
return False
215218
if self.verbose > 0:
216219
print('\nTest run #%d: (includes %s) Server=%s, Proto=%s, zlib=%s, SSL=%s'
217220
% (test_count, genpydir, try_server, try_proto, with_zlib, with_ssl))
@@ -243,6 +246,9 @@ def run_all_tests(self):
243246
# skip any servers that don't work with SSL
244247
if with_ssl and try_server in SKIP_SSL:
245248
continue
249+
if with_ssl and (sys.version_info < (3,7)):
250+
print('Skipping \'with_ssl\' test since python 3.7 or later is required')
251+
continue
246252
test_count += 1
247253
if self.verbose > 0:
248254
print('\nTest run #%d: (includes %s) Server=%s, Proto=%s, zlib=%s, SSL=%s'

0 commit comments

Comments
 (0)