Skip to content

Update test compat with pyftpdlib>=1.5.10 #591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# pyftpdlib is needed to spawn a FTP server for the
# FTPFS test suite
pyftpdlib ~=1.5
pyftpdlib ~=1.5.10

# these are optional dependencies for pyftpdlib that
# are not explicitly listed, we need to install these
Expand Down
4 changes: 2 additions & 2 deletions tests/test_ftpfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,15 @@ class TestFTPFS(FSTestCases, unittest.TestCase):

@classmethod
def setUpClass(cls):
from pyftpdlib.test import ThreadedTestFTPd
from pyftpdlib.test import FtpdThreadWrapper

super(TestFTPFS, cls).setUpClass()

cls._temp_dir = tempfile.mkdtemp("ftpfs2tests")
cls._temp_path = os.path.join(cls._temp_dir, text_type(uuid.uuid4()))
os.mkdir(cls._temp_path)

cls.server = ThreadedTestFTPd()
cls.server = FtpThreadWrapper()
cls.server.shutdown_after = -1
cls.server.handler.authorizer = DummyAuthorizer()
cls.server.handler.authorizer.add_user(
Expand Down