summaryrefslogtreecommitdiffhomepage
path: root/tests/stub_sftp.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2006-02-19 19:17:41 -0800
committerRobey Pointer <robey@lag.net>2006-02-19 19:17:41 -0800
commit4be91d1c4d3d4a2257cec37250822f4a2b8e8530 (patch)
tree35ee0e227ab6df119786ac2bbf1ee9f9057bf02c /tests/stub_sftp.py
parent8446c0bda13ba8cb8d28ff114d68f9f3ec197391 (diff)
[project @ robey@lag.net-20060220031741-3227438ff1b03a29]
add SFTPClient.truncate. add chmod, chown, utime, and truncate to SFTPFile. and of course tests.
Diffstat (limited to 'tests/stub_sftp.py')
-rw-r--r--tests/stub_sftp.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/stub_sftp.py b/tests/stub_sftp.py
index 4b8b9c3c..16e91b46 100644
--- a/tests/stub_sftp.py
+++ b/tests/stub_sftp.py
@@ -48,6 +48,7 @@ class StubSFTPHandle (SFTPHandle):
# use the stored filename
try:
SFTPServer.set_file_attr(self.filename, attr)
+ return SFTP_OK
except OSError, e:
return SFTPServer.convert_errno(e.errno)