[pypy-issue] Issue #3122: requests tests hang (pypy/pypy)

mattip issues-reply at bitbucket.org
Sat Nov 23 02:43:52 EST 2019


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.

‌




More information about the pypy-issue mailing list