Skip to content

Commit 90a1b87

Browse files
author
Kincaid Savoie
committed
Forgot to have test_ssh_client_directory clean up after itself.
1 parent 9c4bb70 commit 90a1b87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_ssh_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import gevent
2424
import socket
2525
import time
26+
import shutil
2627
import unittest
2728
from pssh import SSHClient, ParallelSSHClient, UnknownHostException, AuthenticationException,\
2829
logger, ConnectionErrorException, UnknownHostException, SSHException
@@ -105,7 +106,8 @@ def test_ssh_client_directory(self):
105106
client.copy_file(local_test_path, remote_test_path)
106107
for path in remote_file_paths:
107108
self.assertTrue(os.path.isfile(path))
108-
109+
shutil.rmtree(local_test_path)
110+
shutil.rmtree(remote_test_path)
109111

110112
def test_ssh_agent_authentication(self):
111113
"""Test authentication via SSH agent.

0 commit comments

Comments
 (0)