summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorTrent Nelson <trent@trent.me>2012-10-27 02:21:46 (GMT)
committerTrent Nelson <trent@trent.me>2012-10-27 02:21:46 (GMT)
commite9992292be1693c254a34577e4366707380ccebb (patch)
tree53a05e4a006d5b15747beedf3b2d3a93d597d349 /Lib/test
parente793f44abede8256c5fc64eff569473bcd362a0e (diff)
downloadcpython-e9992292be1693c254a34577e4366707380ccebb.zip
cpython-e9992292be1693c254a34577e4366707380ccebb.tar.gz
cpython-e9992292be1693c254a34577e4366707380ccebb.tar.bz2
Issue #16274: Fix test_asyncore on Solaris.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_asyncore.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_asyncore.py b/Lib/test/test_asyncore.py
index b8dfad2..8f875ff 100644
--- a/Lib/test/test_asyncore.py
+++ b/Lib/test/test_asyncore.py
@@ -484,8 +484,9 @@ class TCPServer(asyncore.dispatcher):
return self.socket.getsockname()[:2]
def handle_accept(self):
- sock, addr = self.accept()
- self.handler(sock)
+ pair = self.accept()
+ if pair is not None:
+ self.handler(pair[0])
def handle_error(self):
raise