Skip to content

Commit 4b38c14

Browse files
author
Kincaid Savoie
committed
Forgot to have test_ssh_client_directory clean up after itself.
1 parent 6d0022e commit 4b38c14

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
@@ -161,7 +162,8 @@ def test_ssh_client_directory(self):
161162
client.copy_file(local_test_path, remote_test_path)
162163
for path in remote_file_paths:
163164
self.assertTrue(os.path.isfile(path))
164-
165+
shutil.rmtree(local_test_path)
166+
shutil.rmtree(remote_test_path)
165167

166168
def test_ssh_agent_authentication(self):
167169
"""Test authentication via SSH agent.

0 commit comments

Comments
 (0)