diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-09-20 16:06:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 16:06:04 (GMT) |
commit | 170ea8ccd4235d28538ab713041502d07ad1cacd (patch) | |
tree | fa589e0d1e80ccd4d1c41071128d46de59a7fa37 /Lib/test/support | |
parent | 49d65958e13db03b9a4240d8bdaff1a4be69a1d7 (diff) | |
download | cpython-170ea8ccd4235d28538ab713041502d07ad1cacd.zip cpython-170ea8ccd4235d28538ab713041502d07ad1cacd.tar.gz cpython-170ea8ccd4235d28538ab713041502d07ad1cacd.tar.bz2 |
bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446)
(cherry picked from commit 8213eaddf3ce8e87564d2949454903a1484748b5)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
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 6da2597..c2cc009 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -1151,6 +1151,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), |