~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/ftp.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-02-25 09:21:19 UTC
  • mfrom: (3235.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080225092119-bk1won32t9nw4h6u
Merge 1.2 branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
576
576
        return [(FtpTransport, ftp_server.FTPServer)]
577
577
    else:
578
578
        # Dummy server to have the test suite report the number of tests
579
 
        # needing that feature.
 
579
        # needing that feature. We raise UnavailableFeature from methods before
 
580
        # the test server is being used. Doing so in the setUp method has bad
 
581
        # side-effects (tearDown is never called).
580
582
        class UnavailableFTPServer(object):
 
583
 
581
584
            def setUp(self):
 
585
                pass
 
586
 
 
587
            def tearDown(self):
 
588
                pass
 
589
 
 
590
            def get_url(self):
 
591
                raise tests.UnavailableFeature(tests.FTPServerFeature)
 
592
 
 
593
            def get_bogus_url(self):
582
594
                raise tests.UnavailableFeature(tests.FTPServerFeature)
583
595
 
584
596
        return [(FtpTransport, UnavailableFTPServer)]