Skip to content

Commit a282c67

Browse files
committed
raise beforehand
1 parent f8639e7 commit a282c67

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/transports/test_ssh.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ def list_open_fds():
8080
process = psutil.Process(os.getpid())
8181
return process.open_files()
8282

83+
open_fds = list_open_fds()
84+
msg = f"Number of open file descriptor: {len(open_fds)}\n\n\n {open_fds}"
85+
raise ValueError(msg)
86+
8387
try:
8488
with SshTransport(
8589
machine='localhost',

0 commit comments

Comments
 (0)