Author: Matti Picus <[email protected]>
Branch: py3.6
Changeset: r96696:b7cc70885b5f
Date: 2019-05-27 08:14 +0300
http://bitbucket.org/pypy/pypy/changeset/b7cc70885b5f/
Log: try to fix win32 _socket.share test
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
@@ -583,7 +583,8 @@
s = _socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.listen()
data = s.share(os.getpid())
- s2 = socket.fromshare(data)
+ # emulate socket.fromshare
+ s2 = _socket.socket(0, 0, 0, data)
try:
assert s.gettimeout() == s2.gettimeout()
assert s.family == s2.family
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit