mirror of https://github.com/python/cpython
Issue #16274: Fix test_asyncore on Solaris.
This commit is contained in:
parent
e793f44abe
commit
e9992292be
|
@ -484,8 +484,9 @@ class TCPServer(asyncore.dispatcher):
|
||||||
return self.socket.getsockname()[:2]
|
return self.socket.getsockname()[:2]
|
||||||
|
|
||||||
def handle_accept(self):
|
def handle_accept(self):
|
||||||
sock, addr = self.accept()
|
pair = self.accept()
|
||||||
self.handler(sock)
|
if pair is not None:
|
||||||
|
self.handler(pair[0])
|
||||||
|
|
||||||
def handle_error(self):
|
def handle_error(self):
|
||||||
raise
|
raise
|
||||||
|
|
|
@ -435,6 +435,8 @@ Extension Modules
|
||||||
Tests
|
Tests
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #16274: Fix test_asyncore on Solaris. Patch by Giampaolo Rodola'.
|
||||||
|
|
||||||
- Issue #15040: Close files in mailbox tests for PyPy compatibility.
|
- Issue #15040: Close files in mailbox tests for PyPy compatibility.
|
||||||
Original patch by Matti Picus.
|
Original patch by Matti Picus.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue