Skip to content

Commit 3e9fc9c

Browse files
escjtratner
authored andcommitted
BUG: off-by-one when doing network test repeats
Imagine num_runs is two, then runs will take on the values [0, 1] and runs < num_uns will always be False. Hence any genuine Exception the code might raise will be silently ignored and just printed.
1 parent cdfae81 commit 3e9fc9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/util/testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ def network_wrapper(*args, **kwargs):
860860
except SkipTest:
861861
raise
862862
except Exception as e:
863-
if runs < num_runs:
863+
if runs < num_runs - 1:
864864
print("Failed: %r" % e)
865865
else:
866866
raise

0 commit comments

Comments
 (0)