~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/features.py

  • Committer: Martin Packman
  • Date: 2011-12-05 14:21:55 UTC
  • mfrom: (6015.44.9 2.4)
  • mto: This revision was merged to the branch mainline in revision 6345.
  • Revision ID: martin.packman@canonical.com-20111205142155-t7s4lr5aau50dp8i
Merge 2.4 into bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
424
424
            f = tempfile.mkstemp(prefix='bzr_perms_chk_')
425
425
            fd, name = f
426
426
            os.close(fd)
427
 
            os.chmod(name, write_perms)
 
427
            osutils.chmod_if_possible(name, write_perms)
428
428
 
429
429
            read_perms = os.stat(name).st_mode & 0777
430
430
            os.unlink(name)