New issue 3122: requests tests hang
https://bitbucket.org/pypy/pypy/issues/3122/requests-tests-hang

mattip:

[https://github.com/psf/requests/pull/5193](https://github.com/psf/requests/pull/5193)

Steps to reproduce:

* clone requests
* `cd requests`
* activate a pypy3 virtualenv or otherwise put the pypy3 bin path so pip and 
python are correct
* `make init` to pip install dependencies
* modify `tests/testserver/server.py` and put a print statement in 
`_close_server_sock_ignore_errors` to see when the server socket is closed
* modify `readinto` in lib-python/3/socket.py around the call to 
`self._sock.recv_into` to see that it is called but never returns
* run `<pypy> -mpytest tests/test_lowlevel.py  -k 
test_use_proxy_from_environment -s`

The test will call `readinto`, then close the server-side socket before 
writing. On CPython closing the socket makes `readinto` error out, on PyPy it 
hangs.

‌


_______________________________________________
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to