Author: Amaury Forgeot d'Arc <amaur...@gmail.com>
Branch: py3.5
Changeset: r87298:09b437dc07a9
Date: 2016-09-22 02:35 +0200
http://bitbucket.org/pypy/pypy/changeset/09b437dc07a9/

Log:    socket.py now depends on the 'select' module.

diff --git a/pypy/module/_socket/test/test_sock_app.py 
b/pypy/module/_socket/test/test_sock_app.py
--- a/pypy/module/_socket/test/test_sock_app.py
+++ b/pypy/module/_socket/test/test_sock_app.py
@@ -300,7 +300,7 @@
 
 
 class AppTestSocket:
-    spaceconfig = dict(usemodules=['_socket', '_weakref', 'struct'])
+    spaceconfig = dict(usemodules=['_socket', '_weakref', 'struct', 'select'])
 
     def setup_class(cls):
         cls.space = space
@@ -726,7 +726,7 @@
 
 class AppTestSocketTCP:
     HOST = 'localhost'
-    spaceconfig = {'usemodules': ['_socket', 'array']}
+    spaceconfig = {'usemodules': ['_socket', 'array', 'select']}
 
     def setup_method(self, method):
         w_HOST = self.space.wrap(self.HOST)
@@ -870,7 +870,7 @@
 
 
 class AppTestErrno:
-    spaceconfig = {'usemodules': ['_socket']}
+    spaceconfig = {'usemodules': ['_socket', 'select']}
 
     def test_errno(self):
         from socket import socket, AF_INET, SOCK_STREAM, error
diff --git a/pypy/module/_ssl/test/test_ssl.py 
b/pypy/module/_ssl/test/test_ssl.py
--- a/pypy/module/_ssl/test/test_ssl.py
+++ b/pypy/module/_ssl/test/test_ssl.py
@@ -2,7 +2,8 @@
 import os
 
 class AppTestSSL:
-    spaceconfig = dict(usemodules=('_ssl', '_socket', 'struct', 'binascii', 
'thread'))
+    spaceconfig = dict(usemodules=('_ssl', '_socket', 'select', 'struct',
+                                   'binascii', 'thread'))
 
     def setup_class(cls):
         cls.w_nullbytecert = cls.space.wrap(os.path.join(
@@ -154,7 +155,7 @@
 class AppTestConnectedSSL:
     spaceconfig = {
         "usemodules": ['_ssl', '_socket', 'struct', 'array', 'binascii',
-                       'unicodedata'],
+                       'unicodedata', 'select'],
     }
 
     def setup_method(self, method):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to