~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

Add Transport.supports_unix_modebits, so tests can 
avoid testing them where they won't work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
        t = self.get_transport()
248
248
        if t.is_readonly():
249
249
            return
 
250
        if not t.supports_unix_modebits():
 
251
            # no sense testing on this transport
 
252
            return
250
253
        # Test mkdir with a mode
251
254
        t.mkdir('dmode755', mode=0755)
252
255
        self.assertTransportMode(t, 'dmode755', 0755)