Commit e58606b7 authored by Jérome Perrin's avatar Jérome Perrin

fixup! proftpd/test: support python3

parent fdaa4b7d
...@@ -97,7 +97,7 @@ class TestSFTPOperations(ProFTPdTestCase): ...@@ -97,7 +97,7 @@ class TestSFTPOperations(ProFTPdTestCase):
def test_simple_sftp_session(self) -> None: def test_simple_sftp_session(self) -> None:
with self._getConnection() as sftp: with self._getConnection() as sftp:
# put a file # put a file
with tempfile.NamedTemporaryFile() as f: with tempfile.NamedTemporaryFile(mode="w") as f:
f.write("Hello FTP !") f.write("Hello FTP !")
f.flush() f.flush()
sftp.put(f.name, remotepath='testfile') sftp.put(f.name, remotepath='testfile')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment