~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/features.py

  • Committer: Patch Queue Manager
  • Date: 2011-12-05 14:53:57 UTC
  • mfrom: (6344.1.1 dev_2.4_integration)
  • Revision ID: pqm@pqm.ubuntu.com-20111205145357-aesrpb6b49pxzym8
(gz) Merge 2.4 into bzr.dev (Martin Packman)

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)