@@ -146,15 +146,15 @@ class TestFTPFS(FSTestCases, unittest.TestCase):
146
146
147
147
@classmethod
148
148
def setUpClass (cls ):
149
- from pyftpdlib .test import ThreadedTestFTPd
149
+ from pyftpdlib .test import FtpdThreadWrapper
150
150
151
151
super (TestFTPFS , cls ).setUpClass ()
152
152
153
153
cls ._temp_dir = tempfile .mkdtemp ("ftpfs2tests" )
154
154
cls ._temp_path = os .path .join (cls ._temp_dir , text_type (uuid .uuid4 ()))
155
155
os .mkdir (cls ._temp_path )
156
156
157
- cls .server = ThreadedTestFTPd ()
157
+ cls .server = FtpdThreadWrapper ()
158
158
cls .server .shutdown_after = - 1
159
159
cls .server .handler .authorizer = DummyAuthorizer ()
160
160
cls .server .handler .authorizer .add_user (
@@ -336,15 +336,15 @@ class TestAnonFTPFS(FSTestCases, unittest.TestCase):
336
336
337
337
@classmethod
338
338
def setUpClass (cls ):
339
- from pyftpdlib .test import ThreadedTestFTPd
339
+ from pyftpdlib .test import FtpdThreadWrapper
340
340
341
341
super (TestAnonFTPFS , cls ).setUpClass ()
342
342
343
343
cls ._temp_dir = tempfile .mkdtemp ("ftpfs2tests" )
344
344
cls ._temp_path = os .path .join (cls ._temp_dir , text_type (uuid .uuid4 ()))
345
345
os .mkdir (cls ._temp_path )
346
346
347
- cls .server = ThreadedTestFTPd ()
347
+ cls .server = FtpdThreadWrapper ()
348
348
cls .server .shutdown_after = - 1
349
349
cls .server .handler .authorizer = DummyAuthorizer ()
350
350
cls .server .handler .authorizer .add_anonymous (cls ._temp_path , perm = "elradfmw" )
0 commit comments