977dc9a369
The following code: server = await asyncio.start_server(...) async with server: ... code that raises ... would lose the original exception because the server's task would not have had a chance to be scheduled yet, and so awaiting the task in wait_closed would raise the cancellation instead of the original exception. Additionally, ensures that explicitly cancelling the parent task delivers the cancellation correctly (previously was masked by the server loop), now this only happens if the server was closed, not when the task was cancelled. Signed-off-by: Jim Mussared <jim.mussared@gmail.com> |
||
---|---|---|
.. | ||
README | ||
accept_nonblock.py | ||
accept_nonblock.py.exp | ||
accept_timeout.py | ||
accept_timeout.py.exp | ||
asyncio_start_server.py | ||
asyncio_start_server.py.exp | ||
connect_nonblock.py | ||
connect_nonblock.py.exp | ||
connect_nonblock_xfer.py | ||
connect_poll.py | ||
connect_poll.py.exp | ||
ssl_getpeercert.py | ||
ssl_getpeercert.py.exp |
README
This directory contains network tests which require just "peer to peer" network connection between test host and device under test, instead of full Internet connection. Note that setup for these tests and tests themselves are WIP, and may not yet fully correspond to the functional specification above. So far, these tests are not run as part of the main testsuite and need to be run separately (from the main test/ directory): ./run-tests.py net_hosted/*.py