Author: Matti Picus <[email protected]>
Branch: py3.6
Changeset: r97868:10516be1003b
Date: 2019-10-27 12:10 +0200
http://bitbucket.org/pypy/pypy/changeset/10516be1003b/

Log:    fix for python3, _socket.accept -> _socket._accept

diff --git a/pypy/module/select/test/test_select.py 
b/pypy/module/select/test/test_select.py
--- a/pypy/module/select/test/test_select.py
+++ b/pypy/module/select/test/test_select.py
@@ -382,7 +382,9 @@
         self.sock.listen(1)
         s2 = _socket.socket()
         _thread.start_new_thread(s2.connect, (self.sockaddress,))
-        s1, addr2 = self.sock.accept()
+        fd, addr2 = self.sock._accept()
+        s1 = _socket.socket(_socket.AF_INET, _socket.SOCK_STREAM,
+                              proto=0, fileno=fd)
 
         # speed up the tests that want to fill the buffers
         s1.setsockopt(_socket.SOL_SOCKET, _socket.SO_RCVBUF, 4096)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to