~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/ftp_server/__init__.py

(vila) Support pyftpdlib >= 0.7.0 as an ftp test server (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
try:
43
43
    from bzrlib.tests.ftp_server import pyftpdlib_based
44
 
    pyftpdlib_available = True
 
44
    if pyftpdlib_based.pyftplib_version >= (0, 7, 0):
 
45
        pyftpdlib_available = True
 
46
    else:
 
47
        # 0.6.0 breaks SITE CHMOD
 
48
        pyftpdlib_available = False
45
49
except ImportError:
46
50
    pyftpdlib_available = False
47
51