Message298716
Sure! It seems to work, the process returns an exit code of 0 and I see no traceback but the message is still displayed in the terminal.
(Also I did something weird because your patch applies on branch master and I ran it with Python 3.6... I suppose it shouldn't be a problem)
[0] [11:54:13] /tmp > d run -it --rm -v /tmp:/tmp:ro -v ~/repos/cpython/Lib/asyncio:/usr/local/lib/python3.6/asyncio:ro python:3.6 python /tmp/test_ipv6.py
error while attempting to bind on address ('::1', 27015, 0, 0): cannot assign requested address
[0] [11:54:19] /tmp > d run -it --rm -v /tmp:/tmp:ro python:3.6 python /tmp/test_ipv6.py
Traceback (most recent call last):
File "/usr/local/lib/python3.6/asyncio/base_events.py", line 1043, in create_server
sock.bind(sa)
OSError: [Errno 99] Cannot assign requested address
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/test_ipv6.py", line 11, in <module>
server = loop.run_until_complete(server_creation)
File "/usr/local/lib/python3.6/asyncio/base_events.py", line 466, in run_until_complete
return future.result()
File "/usr/local/lib/python3.6/asyncio/base_events.py", line 1047, in create_server
% (sa, err.strerror.lower()))
OSError: [Errno 99] error while attempting to bind on address ('::1', 27015, 0, 0): cannot assign requested address
[1] [11:54:52] /tmp > |
|
Date |
User |
Action |
Args |
2017-07-20 11:57:41 | cecton | set | recipients:
+ cecton, pitrou, yselivanov |
2017-07-20 11:57:41 | cecton | set | messageid: <1500551861.32.0.711649140354.issue30945@psf.upfronthosting.co.za> |
2017-07-20 11:57:41 | cecton | link | issue30945 messages |
2017-07-20 11:57:40 | cecton | create | |
|