@@ -146,15 +146,15 @@ class TestFTPFS(FSTestCases, unittest.TestCase):
146146
147147 @classmethod
148148 def setUpClass (cls ):
149- from pyftpdlib .test import ThreadedTestFTPd
149+ from pyftpdlib .test import FtpdThreadWrapper
150150
151151 super (TestFTPFS , cls ).setUpClass ()
152152
153153 cls ._temp_dir = tempfile .mkdtemp ("ftpfs2tests" )
154154 cls ._temp_path = os .path .join (cls ._temp_dir , text_type (uuid .uuid4 ()))
155155 os .mkdir (cls ._temp_path )
156156
157- cls .server = ThreadedTestFTPd ()
157+ cls .server = FtpdThreadWrapper ()
158158 cls .server .shutdown_after = - 1
159159 cls .server .handler .authorizer = DummyAuthorizer ()
160160 cls .server .handler .authorizer .add_user (
@@ -336,15 +336,15 @@ class TestAnonFTPFS(FSTestCases, unittest.TestCase):
336336
337337 @classmethod
338338 def setUpClass (cls ):
339- from pyftpdlib .test import ThreadedTestFTPd
339+ from pyftpdlib .test import FtpdThreadWrapper
340340
341341 super (TestAnonFTPFS , cls ).setUpClass ()
342342
343343 cls ._temp_dir = tempfile .mkdtemp ("ftpfs2tests" )
344344 cls ._temp_path = os .path .join (cls ._temp_dir , text_type (uuid .uuid4 ()))
345345 os .mkdir (cls ._temp_path )
346346
347- cls .server = ThreadedTestFTPd ()
347+ cls .server = FtpdThreadWrapper ()
348348 cls .server .shutdown_after = - 1
349349 cls .server .handler .authorizer = DummyAuthorizer ()
350350 cls .server .handler .authorizer .add_anonymous (cls ._temp_path , perm = "elradfmw" )
0 commit comments