Commit d28c6086 authored by Jason Madden's avatar Jason Madden

Add __all__ for _sslgte279, fixing test__all under 2.7.9. Adjust test__all and...

Add __all__ for _sslgte279, fixing test__all under 2.7.9. Adjust test__all and test__execmodule to not examine _sslgte279 on < 2.7.9, making them pass under earlier versions.
parent e867ec12
......@@ -20,8 +20,13 @@ from gevent.hub import PYPY
__implements__ = ['SSLContext',
'SSLSocket',
'wrap_socket',
'get_server_certificate']
'get_server_certificate',
'create_default_context',
'_create_unverified_context',
'_create_default_https_context',
'_create_stdlib_context']
__imports__ = []
# Import all symbols from Python's ssl.py, except those that we are implementing
# and "private" symbols.
......@@ -32,10 +37,11 @@ for name in dir(__ssl__):
continue
value = getattr(__ssl__, name)
globals()[name] = value
__imports__.append(name)
del name, value
__all__ = __implements__ + __imports__
orig_SSLContext = __ssl__.SSLContext
......
......@@ -140,7 +140,7 @@ are missing from %r:
raise AssertionError(msg)
def _test(self, modname):
if modname.endswith('2'):
if modname.endswith('2') or modname.endswith("279"):
return
if modname.endswith('3'):
return
......
import sys
from gevent.hub import PYGTE279
from greentest import walk_modules, BaseTestCase, main
import six
......@@ -26,6 +27,8 @@ for path, module in walk_modules():
continue
if sys.version_info[0] == 2 and path.endswith('3.py'):
continue
if not PYGTE279 and path.endswith('279.py'):
continue
make_exec_test(path, module)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment