Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5d938cb

Browse files
committed
Add EHOSTUNREACH ('No route to host') to the errnos trapped by transient_internet().
1 parent 83b1ab0 commit 5d938cb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/support.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,7 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
800800
default_errnos = [
801801
('ECONNREFUSED', 111),
802802
('ECONNRESET', 104),
803+
('EHOSTUNREACH', 113),
803804
('ENETUNREACH', 101),
804805
('ETIMEDOUT', 110),
805806
]

0 commit comments

Comments
 (0)