Skip to content

Commit e72b1f3

Browse files
Caid11pkittenis
authored andcommitted
Fixed tests so they actually clean up after themselves.
1 parent 0e88f37 commit e72b1f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_pssh_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ def test_pssh_copy_file(self):
362362
msg="SFTP copy failed")
363363
for filepath in [local_filename, remote_filename]:
364364
os.unlink(filepath)
365+
shutil.rmtree(remote_test_dir)
365366
del client
366367

367368
def test_pssh_client_directory(self):
@@ -472,6 +473,7 @@ def test_pssh_copy_file_to_local(self):
472473
msg="SFTP copy failed")
473474
for filepath in [remote_filename, local_filename]:
474475
os.unlink(filepath)
476+
shutil.rmtree(local_test_dir)
475477
del client
476478
server.join()
477479

0 commit comments

Comments
 (0)