diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2018-09-20 15:08:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 15:08:57 (GMT) |
commit | 8213eaddf3ce8e87564d2949454903a1484748b5 (patch) | |
tree | 3679d1733188673defb19b380306d0c3ed3b067c /Lib/test/support | |
parent | b10a64d117de6121ea3e79c467c4107f8f399f3d (diff) | |
download | cpython-8213eaddf3ce8e87564d2949454903a1484748b5.zip cpython-8213eaddf3ce8e87564d2949454903a1484748b5.tar.gz cpython-8213eaddf3ce8e87564d2949454903a1484748b5.tar.bz2 |
bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446)
Diffstat (limited to 'Lib/test/support')
-rw-r--r-- | Lib/test/support/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 19701cf..ed0d46d 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -1426,6 +1426,9 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()): ('EHOSTUNREACH', 113), ('ENETUNREACH', 101), ('ETIMEDOUT', 110), + # socket.create_connection() fails randomly with + # EADDRNOTAVAIL on Travis CI. + ('EADDRNOTAVAIL', 99), ] default_gai_errnos = [ ('EAI_AGAIN', -3), |