Skip to content

Commit f59b6a1

Browse files
author
y-p
committed
BLD/TEST: @network, SkipTest on known errnos
1 parent 4ca076a commit f59b6a1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/util/testing.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1099,9 +1099,13 @@ def wrapper(*args, **kwargs):
10991099
except Exception as e:
11001100
errno = getattr(e,'errno',None)
11011101

1102-
if not isinstance(e, error_classes) and not errno in skip_errnos:
1102+
if not isinstance(e, error_classes):
11031103
raise
11041104

1105+
if errno in skip_errnos:
1106+
raise SkipTest("Skipping test due to known errno"
1107+
" and error %s" % e)
1108+
11051109
if raise_on_error or can_connect(url, error_classes):
11061110
raise
11071111
else:

0 commit comments

Comments
 (0)