- 25 Feb, 2016 6 commits
-
-
Jason Madden authored
-
Jason Madden authored
This required a change to our test_threading_2.py: we weren't testing patched RLocks at all! Now we run the full set on them. Also add test_threading.py from Python 3.4 and 3.5 to the test suite to identify any other differences. A few tests have to be commented out because they rely on reprs or internal class details, but nothing too severe or concerning. Locally tox 3.3, 3.4 and 3.5 are all green.
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
It's a pet peeve of mine when you can't at least directly get to the changelog for a release from the PyPI page. Before this, it took at least three clicks and some reading to figure out where they were. (Including directly in the page is better, but our notes are kind of long; maybe we should split them up?) [skip ci]
-
Jason Madden authored
my one-off scripts I've been using to build releases so they don't get lost. needs much love to be useful to anyone else. [skip ci]
-
- 24 Feb, 2016 5 commits
-
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
- 20 Feb, 2016 2 commits
-
-
Jason Madden authored
-
Jason Madden authored
-
- 19 Feb, 2016 3 commits
-
-
Jason Madden authored
-
Jason Madden authored
pypy 'incorrectly' raises a plain ssl.SSLError where CPython would raise a ssl.SSLEOFError, even though pypy defines that class. But pypy doesn't try too hard to match exact exceptions with cpython.
-
Jason Madden authored
Add unit tests for sending empty data using sendall, sendall with a timeout, and send. Note that SSLSocket.send(b'') *does* raise EOFError, just like the standard library.
-
- 16 Feb, 2016 3 commits
-
-
Jason Madden authored
This avoids a printed/ignored KeyError seen on PyPy/arm. [skip ci]
-
Jason Madden authored
-
Jason Madden authored
-
- 12 Feb, 2016 5 commits
-
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
This showed we were missing implementations for socket.sendfile and get/set_inheritable.
-
- 11 Feb, 2016 8 commits
-
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
Fix ssl tests under 3.3 by creating the check_hostname attribute. Bump tested 3.4 to 3.4.4 due to test errors seen under 3.4.3.
-
Jason Madden authored
-
Jason Madden authored
(Well, actually the version that fixes the svn.python.org certificate problem, as of https://github.com/python/cpython/commit/e5b4fee762a5f4954912e4cbde0ba113b687a66f.) This showed several errors in our SSLSocket impleentation: - read/write/do_handshake raise the correct error for unconnected sockets. - SSLSocket.unwrap returns a working socket object - SSLSocket allows changing the context - SNI callbacks get a working SSLSocket that can change the context
-
- 10 Feb, 2016 5 commits
-
-
Jason Madden authored
Update py27 tests
-
Jason Madden authored
We have unix newlines in the file, the server returns dos newlines: ====================================================================== FAIL: test_socketserver (__main__.ThreadedTests) Using a SocketServer to create and manage SSL connections. ---------------------------------------------------------------------- Traceback (most recent call last): File "test_ssl.py", line 2436, in test_socketserver self.assertEqual(d1, d2) AssertionError: '-----BEGIN PRIVATE KEY-----\nMIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBANtb0+YrKuxevGpm\nLrjaUhZSgz6zFAmuGFmKmUbdjmfv9zSmmdsQIksK++jK0Be9LeZy20j6ahOfuVa0\nufEmPoP7Fy4hXegKZR9cCWcIe/A6H2xWF1IIJLRTLaU8ol/I7T+um5HD5AwAwNPP\nUSNU0Eegmvp+xxWu3NX2m1Veot85AgMBAAECgYA3ZdZ673X0oexFlq7AAmrutkHt\nCL7LvwrpOiaBjhyTxTeSNWzvtQBkIU8DOI0bIazA4UreAFffwtvEuPmonDb3F+Iq\nSMAu42XcGyVZEl+gHlTPU9XRX7nTOXVt+MlRRRxL6t9GkGfUAXI3XxJDXW3c0vBK\nUL9xqD8cORXOfE06rQJBAP8mEX1ERkR64Ptsoe4281vjTlNfIbs7NMPkUnrn9N/Y\nBLhjNIfQ3HFZG8BTMLfX7kCS9D593DW5tV4Z9BP/c6cCQQDcFzCcVArNh2JSywOQ\nZfTfRbJg/Z5Lt9Fkngv1meeGNPgIMLN8Sg679pAOOWmzdMO3V706rNPzSVMME7E5\noPIfAkEA8pDddarP5tCvTTgUpmTFbakm0KoTZm2+FzHcnA4jRh+XNTjTOv98Y6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\nBAYTAlhZMRcwFQYDVQQHEw5DYXN0bGUgQW50aHJheDEjMCEGA1UEChMaUHl0aG9u\r\nIFNvZnR3YXJlIEZvdW5kYXRpb24xEjAQBgNVBAMTCWxvY2FsaG9zdDAeFw0xMDEw\r\nMDgyMzAxNTZaFw0yMDEwMDUyMzAxNTZaMF8xCzAJBgNVBAYTAlhZMRcwFQYDVQQH\r\nEw5DYXN0bGUgQW50aHJheDEjMCEGA1UEChMaUHl0aG9uIFNvZnR3YXJlIEZvdW5k\r\nYXRpb24xEjAQBgNVBAMTCWxvY2FsaG9zdDCBnzANBgkqhkiG9w0BAQEFAAOBjQAw\r\ngYkCgYEA21vT5isq7F68amYuuNpSFlKDPrMUCa4YWYqZRt2OZ+/3NKaZ2xAiSwr7\r\n6MrQF70t5nLbSPpqE5+5VrS58SY+g/sXLiFd6AplH1wJZwh78DofbFYXUggktFMt\r\npTyiX8jtP66bkcPkDADA089RI1TQR6Ca+n7HFa7c1fabVV6i3zkCAwEAAaMYMBYw\r\nFAYDVR0RBA0wC4IJbG9jYWxob3N0MA0GCSqGSIb3DQEBBQUAA4GBAHPctQBEQ4wd\r\nBJ6+JcpIraopLn8BGhbjNWj40mmRqWB/NAWF6M5ne7KpGAu7tLeG4hb1zLaldK8G\r\nlxy2GPSRF6LFS48dpEj2HbMv2nvv6xxalDMJ9+DicWgAKTQ6bcX2j3GUkCR0g/T1\r\nCRlNBAAlvhKzO7Clpf9l0YKBEfraJByX\r\n-----END CERTIFICATE-----\r\n'
-
Jason Madden authored
-
Jason Madden authored
-
Jason Madden authored
Also update the test_ssl.py to cpython rev 2c9ff9e (head). This fixes the problems with invalid certs for svn.python.org. These tests include much more testing of the new-in-2.7.9 SSLContext settings, which revealed some problems in our hostname validation, our handling of read/write/do_handshake for closed sockets, and the missing alpn_selected method.
-
- 09 Feb, 2016 1 commit
-
-
Jason Madden authored
-
- 08 Feb, 2016 2 commits
-
-
Jason Madden authored
Fix #289. Avoid OverflowError in Py2 for large WSGI uploads.
-
Jason Madden authored
-