hi,
With a .travis.yml
set to:
language: python
python:
- "3.5"
install:
- python3 test.py
and test.py
:
import socket
s = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
s.connect(('::1', 1234))
As can be seen here, I’m getting this error on Travis:
[Errno 99] Cannot assign requested address
The expected behavior is:
[Errno 111] Connection refused
(Note: this is a duplicate of IPv6 sockets returning "Cannot assign requested address" · Issue #8711 · travis-ci/travis-ci · GitHub , and "Cannot assign requested address" when connecting to ::1 · Issue #10350 · travis-ci/travis-ci · GitHub which got closed)