41 lines
1.5 KiB
Diff
41 lines
1.5 KiB
Diff
diff --git a/tests/test_ftpfs.py b/tests/test_ftpfs.py
|
|
index 2bb2c73..a3cfb04 100644
|
|
--- a/tests/test_ftpfs.py
|
|
+++ b/tests/test_ftpfs.py
|
|
@@ -146,7 +146,7 @@ class TestFTPFS(FSTestCases, unittest.TestCase):
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
- from pyftpdlib.test import ThreadedTestFTPd
|
|
+ from pyftpdlib.test import FtpdThreadWrapper
|
|
|
|
super(TestFTPFS, cls).setUpClass()
|
|
|
|
@@ -154,7 +154,7 @@ class TestFTPFS(FSTestCases, unittest.TestCase):
|
|
cls._temp_path = os.path.join(cls._temp_dir, text_type(uuid.uuid4()))
|
|
os.mkdir(cls._temp_path)
|
|
|
|
- cls.server = ThreadedTestFTPd()
|
|
+ cls.server = FtpdThreadWrapper()
|
|
cls.server.shutdown_after = -1
|
|
cls.server.handler.authorizer = DummyAuthorizer()
|
|
cls.server.handler.authorizer.add_user(
|
|
@@ -336,7 +336,7 @@ class TestAnonFTPFS(FSTestCases, unittest.TestCase):
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
- from pyftpdlib.test import ThreadedTestFTPd
|
|
+ from pyftpdlib.test import FtpdThreadWrapper
|
|
|
|
super(TestAnonFTPFS, cls).setUpClass()
|
|
|
|
@@ -344,7 +344,7 @@ class TestAnonFTPFS(FSTestCases, unittest.TestCase):
|
|
cls._temp_path = os.path.join(cls._temp_dir, text_type(uuid.uuid4()))
|
|
os.mkdir(cls._temp_path)
|
|
|
|
- cls.server = ThreadedTestFTPd()
|
|
+ cls.server = FtpdThreadWrapper()
|
|
cls.server.shutdown_after = -1
|
|
cls.server.handler.authorizer = DummyAuthorizer()
|
|
cls.server.handler.authorizer.add_anonymous(cls._temp_path, perm="elradfmw")
|