- 27 Feb, 2016 2 commits
-
-
Jason Madden authored
-
Jason Madden authored
-
- 26 Feb, 2016 2 commits
-
-
Jason Madden authored
Move the Event/AsyncResult class-level _todo to a local, making classes cheaper to construct, and the _notify_links method and its interaction with _check_and_notify a bit less brain-teasing
-
Jason Madden authored
-
- 25 Feb, 2016 7 commits
-
-
Jason Madden authored
http://bugs.python.org/issue13502 A race condition in Event that caused an improper return value if greenlets were waiting while the event was set, but then immediately cleared. This was fixed in Python 3 but not (yet?) backported to Python 2.7, even though the bug identifies that as a target. Not only does this behaviour seem more obviously correct to me, it's more future-proof: user share of Python 2 should be diminishing while Python 3 share (with the correct behaviour) grows.
-
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 3 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+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