~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_transport.py

  • Committer: Martin
  • Date: 2011-08-04 00:17:53 UTC
  • mto: This revision was merged to the branch mainline in revision 6055.
  • Revision ID: gzlist@googlemail.com-20110804001753-plgpwcpsxcum16yb
Make tests raising KnownFailure use the knownFailure method instead

Show diffs side-by-side

added added

removed removed

Lines of Context:
1136
1136
            raise TestSkipped("Transport %s does not support symlinks." %
1137
1137
                              self._server.__class__)
1138
1138
        except IOError:
1139
 
            raise tests.KnownFailure("Paramiko fails to create symlinks during tests")
 
1139
            self.knownFailure("Paramiko fails to create symlinks during tests")
1140
1140
 
1141
1141
    def test_list_dir(self):
1142
1142
        # TODO: Test list_dir, just try once, and if it throws, stop testing
1555
1555
 
1556
1556
        no_unicode_support = getattr(self._server, 'no_unicode_support', False)
1557
1557
        if no_unicode_support:
1558
 
            raise tests.KnownFailure("test server cannot handle unicode paths")
 
1558
            self.knownFailure("test server cannot handle unicode paths")
1559
1559
 
1560
1560
        try:
1561
1561
            self.build_tree(files, transport=t, line_endings='binary')