- 18 May, 2015 5 commits
-
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
Fix test__ssl and test__socket under Py3.3; mostly a bytes/unicode thing. These tests, however, now hang under Py3.4 (previously they weren't getting far enough to do so), so temporarily remove from the Travis test matrix while debugging.
-
Jason Madden authored
-
Jason Madden authored
-
- 17 May, 2015 1 commit
-
-
Jason Madden authored
PyPy 2.5.1 support improvements, and ssl 2.7.9 support. Fixes #546.
-
- 16 May, 2015 4 commits
-
-
Jason Madden authored
-
Jason Madden authored
Fix the test_ssl failures for Python 2.6. Add a basic tox.ini to make it easier to locally test different environments.
-
Jason Madden authored
-
Jason Madden authored
-
- 08 May, 2015 1 commit
-
-
Jason Madden authored
Back out the changes to _ssl2.SSLSocket.__init__; with the addition of _sslgte279 they should no longer be necessary.
-
- 17 Apr, 2015 9 commits
-
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
Fix test_ares_timeout to not require a root port. Because it is still a constant port, don't fail the test if it can't be bound, like 7960b8c3.
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
gevent/gevent#248 and gevent/gevent#434. Fix test__ares_host_result under PyPy the same way that test_ares_timeout is by simply ignoring it. PyPy now has 4 expected failures; CPython2.7 has one (test__socket_dns6). Includes gevent/gevent#546 with modifications for PyPy.
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
- 16 Apr, 2015 6 commits
-
-
Jason Madden authored
-
Jason Madden authored
Fix the subprocess tests on PyPy: they fail even in a stock build, so skip the one that's a problem.
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
- 27 Mar, 2015 1 commit
-
-
Jason Madden authored
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.
-
- 25 Mar, 2015 6 commits
-
-
Jason Madden authored
Fix the last test_ssl failure (test_protocol_sslv2) for CPython 2.7.8 and .9. In python Issue 20207, the SSLv2 protocol was disabled by default, and thus the test was changed to expect a failure (see https://github.com/python/cpython/commit/65f2fdce200b800bd95ac6690e9654afc37897c6). Match that change.
-
Jason Madden authored
-
Jason Madden authored
The same flush calls that were needed for PyPy are needed to make CPython's test__pywsgi tests pass.
-
Jason Madden authored
-
Jason Madden authored
Tested under Python 2.7.8 and all the test_ssl tests pass, EXCEPT for: -- test_algorithms. That test is disabled in the 2.7.8 sourcecode, so disable it here; -- test_protocol_sslv2, which fails with the same EOF error as described in the last commit for 2.7.9.
-
Jason Madden authored
Fixes several test failures under 2.7.9, notably test__pywsgi and test__ssl. There are lots of whitespace differences in the tests due to forking for CPython <= 2.7.8. The complete failure list follows. The ONLY failure in 2.7/test_ssl has this traceback; I'm not sure what the cause is yet: ====================================================================== ERROR: test_protocol_sslv2 (__main__.ThreadedTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_ssl.py", line 71, in f return func(*args, **kwargs) File "test_ssl.py", line 1205, in test_protocol_sslv2 try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv23, True) File "test_ssl.py", line 979, in try_protocol_combo chatty=False, connectionchatty=False) File "test_ssl.py", line 909, in server_params_test s.connect((HOST, server.port)) File "/gevent/gevent/_sslgte279.py", line 546, in connect self._real_connect(addr, False) File "/gevent/gevent/_sslgte279.py", line 537, in _real_connect self.do_handshake() File "/gevent/gevent/_sslgte279.py", line 504, in do_handshake return self._sslobj.do_handshake() SSLEOFError: EOF occurred in violation of protocol (_ssl.c:581) ---------------------------------------------------------------------- 3/123 expected failures - //bin/python -u -m monkey_test test_ssl.py - //bin/python -u test__socket_dns6.py - //bin/python -u -m monkey_test --Event test_ssl.py 4/123 unexpected failures - //bin/python -u test__all__.py - //bin/python -u test_ares_timeout.py - //bin/python -u -m monkey_test test_httpservers.py - //bin/python -u -m monkey_test --Event test_httpservers.py
-
- 21 Mar, 2015 1 commit
-
-
Steffen Prince authored
Resolves #477. In Python 2.7.9, we have new SSL interfaces, that are not quite the old Python 2 interfaces, nor the same as the Python 3 interfaces. This creates a new SSL module, _sslgte279.py, for Python 2 versions greater than or equal 2.7.9, ported from Python 2.7.9's ssl.py: https://hg.python.org/cpython/file/648dcafa7e5f/Lib/ssl.py. The process of porting was done by starting with gevent's ssl3.py and backporting Python 2.7.9's ssl.py. Fixes these tests under Python 2.7.9: - /usr/local/bin/python -u -m monkey_test --Event test_urllib2net.py - /usr/local/bin/python -u -m monkey_test test_urllib2net.py - /usr/local/bin/python -u test__ssl.py No new test failures. Still failing since 72119c8c: - /usr/local/bin/python -u -m monkey_test --Event test_ssl.py - /usr/local/bin/python -u -m monkey_test test_ssl.py - /usr/local/bin/python -u test__pywsgi.py - /usr/local/bin/python -u test__makefile_ref.py - /usr/local/bin/python -u test__socket.py - /usr/local/bin/python -u test___example_servers.py - /usr/local/bin/python -u -m monkey_test --Event test_ftplib.py - /usr/local/bin/python -u test__socket_ssl.py - /usr/local/bin/python -u -m monkey_test test_ftplib.py - /usr/local/bin/python -u test__all__.py In addition, basic HTTPS requests were tested with urllib3==1.10.2 and requests==2.6.0.
-
- 17 Mar, 2015 6 commits
-
-
Jason Madden authored
Per @tilgovi in issue gevent/gevent#248, try the path of adapting the example portforwarder to work like gunicorn and don't expect the lifetime of the socket to outlast the invocation of the spawned handle method. Down to 10 total failures, only one unexpected.
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
Do not hang test_socket under pypy and fix NetworkConnectionNoServer.test_create_connection_timeout.
-
Jason Madden authored
-
Jason Madden authored
to close the socket (or other arguments) when the handler finished. This breaks under PyPy which uses a different GC. Fix it by wrapping the handler and explicitly closing the socket when it returns. This fixes test__server under PyPy, although not in a particularly elegant way. It also negates the need for 57936127.
-