Skip to content

Commit 4e544f3

Browse files
committed
Change test error assumption
1 parent 4382769 commit 4e544f3

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dist/
66

77
# Test files
88
.nox/
9+
venv/
910

1011
# Coverage files
1112
.coverage
@@ -14,4 +15,4 @@ nosetests.xml
1415

1516
# IDE files
1617
.idea
17-
.vscode
18+
.vscode

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def lint(session):
4747
)
4848

4949

50-
@nox.session(python=["3.6", "3.7", "3.8", "3.9"])
50+
@nox.session(python=["3.6", "3", "3.8", "3.9"])
5151
@nox.parametrize(
5252
"oauth2client",
5353
[
@@ -80,4 +80,4 @@ def unit(session, oauth2client):
8080
@nox.session(python="3.6")
8181
def docs(session):
8282
session.install('.')
83-
session.run("python", "describe.py")
83+
session.run("python", "describe.py")

tests/test_http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ def request(self, *args, **kwargs):
174174
# set errno to a non-retriable value
175175
try:
176176
# For Windows:
177-
ex.errno = socket.errno.WSAECONNREFUSED
177+
ex.errno = socket.errno.WSAEHOSTUNREACH
178178
except AttributeError:
179179
# For Linux/Mac:
180-
ex.errno = socket.errno.ECONNREFUSED
180+
ex.errno = socket.errno.EHOSTUNREACH
181181
# Now raise the correct timeout error.
182182
raise ex
183183

0 commit comments

Comments
 (0)