Skip to content

Commit 1d64e50

Browse files
authored
Silence paramiko PytestUnhandledThreadExceptionWarning (#4105)
Suppress `PytestUnhandledThreadExceptionWarning` caused by paramiko's `ProxyCommand.close()` trying to kill an already-dead process. Upstream bug: paramiko/paramiko#2568 This filter targets only paramiko-related thread exceptions using `(?s)` dotall flag to match the multiline traceback message. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated test configuration to suppress a specific warning during test runs, improving test output clarity. * Added an inline note marking the suppression for future removal once the upstream issue is resolved. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 5ba2d13 commit 1d64e50

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pytest.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ addopts =
1616
--indulgent-ordering
1717
--self-contained-html
1818

19+
# Remove once https://github.com/paramiko/paramiko/issues/2568 is resolved
20+
filterwarnings =
21+
ignore:(?s).*paramiko.*:pytest.PytestUnhandledThreadExceptionWarning
22+
1923
markers =
2024
# General
2125
polarion: Store polarion test ID

0 commit comments

Comments
 (0)