~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

  • Committer: Vincent Ladeuil
  • Date: 2008-02-10 15:51:22 UTC
  • mto: (3221.1.10 prepare-1.2rc1)
  • mto: This revision was merged to the branch mainline in revision 3236.
  • Revision ID: v.ladeuil+lp@free.fr-20080210155122-gib8voz2xbausm5c
Fix bug #137823 by raising UnavailableFeature *after* the fake ftp server
setup is completed.

*  bzrlib/transport/ftp.py:
(get_test_permutations.UnavailableFTPServer): Raising an exception
during setup is not correctly handled by the test
framework. Better raise it on get_url() and get_bogus_url() which
are always called first when using a server.

*  bzrlib/builtins.py:
(cmd_selftest.run): 'info()' is about to be deprecated, use note()
instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
                    result.append(scenario)
97
97
            except errors.DependencyNotPresent, e:
98
98
                # Continue even if a dependency prevents us 
99
 
                # from running this test
 
99
                # from adding this test
100
100
                pass
101
101
        return result
102
102