/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/tests/test_ftp_transport.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
import ftplib
18
18
import getpass
19
19
 
20
 
from bzrlib import (
 
20
from .. import (
21
21
    config,
22
22
    errors,
23
23
    tests,
26
26
    urlutils,
27
27
    )
28
28
 
29
 
from bzrlib.transport import ftp
 
29
from ..transport import ftp
30
30
 
31
 
from bzrlib.tests import ftp_server
 
31
from . import ftp_server
32
32
 
33
33
 
34
34
class TestCaseWithFTPServer(tests.TestCaseWithTransport):
146
146
 
147
147
        try:
148
148
            raise ftplib.error_temp("Rename/move failure: Directory not empty")
149
 
        except Exception, e:
 
149
        except Exception as e:
150
150
            e = self.assertRaises(errors.DirectoryNotEmpty,
151
151
                t._translate_ftp_error, e, "/path")