~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

(mbp) squelch chmod errors,
 to cope with non-unixy unix filesystems (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4756
4756
            f = tempfile.mkstemp(prefix='bzr_perms_chk_')
4757
4757
            fd, name = f
4758
4758
            os.close(fd)
4759
 
            os.chmod(name, write_perms)
 
4759
            osutils.chmod_if_possible(name, write_perms)
4760
4760
 
4761
4761
            read_perms = os.stat(name).st_mode & 0777
4762
4762
            os.unlink(name)