Skip to content

Conversation

@tacerus
Copy link
Contributor

@tacerustacerus commented Jun 20, 2023

Hello,

I faced the same issue described in #66 (comment), however #71 did not help, as the exception in my case was not a Paramiko SSHException, but a ConnectionResetError.

This patch adds the latter exception to be handled equally.

If a target host temporarily looses connection, for example upon resetting a test VM as part of a parametrized test run, retry the SSH connection the same way it is retried upon an SSH exception. Signed-off-by: Georg Pfuetzenreuter <[email protected]>
@philpepphilpepforce-pushed the ConnectionResetError branch from 6be11b4 to 4615d29CompareJuly 21, 2023 14:14
@philpepphilpep added the bug This issue/PR relates to a bug. label Aug 24, 2023
@philpepphilpep merged commit a12badf into pytest-dev:mainAug 24, 2023
@philpep
Copy link
Contributor

Merged, thanks!

@tacerus
Copy link
ContributorAuthor

Thanks as well! :-)

@tacerustacerus deleted the ConnectionResetError branch August 24, 2023 21:07
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugThis issue/PR relates to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@tacerus@philpep