Skip to content

Commit 25136ee

Browse files
author
y-p
committed
BLD/TST: tweak @network checks order
1 parent 15a8ff7 commit 25136ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/util/testing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,9 +1116,6 @@ def wrapper(*args, **kwargs):
11161116
if not errno and hasattr(errno, "reason"):
11171117
errno = getattr(e.reason, 'errno', None)
11181118

1119-
if not isinstance(e, error_classes):
1120-
raise
1121-
11221119
if errno in skip_errnos:
11231120
raise SkipTest("Skipping test due to known errno"
11241121
" and error %s" % e)
@@ -1127,6 +1124,9 @@ def wrapper(*args, **kwargs):
11271124
raise SkipTest("Skipping test because exception message is known"
11281125
" and error %s" % e)
11291126

1127+
if not isinstance(e, error_classes):
1128+
raise
1129+
11301130
if raise_on_error or can_connect(url, error_classes):
11311131
raise
11321132
else:

0 commit comments

Comments
 (0)