~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-03 09:39:11 UTC
  • mfrom: (2949.6.2 win32.os.lstat)
  • Revision ID: pqm@pqm.ubuntu.com-20071103093911-4alf7wiad3n3vfz6
windows python has os.lstat

Show diffs side-by-side

added added

removed removed

Lines of Context:
284
284
 
285
285
        # Make a file readonly
286
286
        osutils.make_readonly('file')
287
 
        mode = osutils.lstat('file').st_mode
 
287
        mode = os.lstat('file').st_mode
288
288
        self.assertEqual(mode, mode & 0777555)
289
289
 
290
290
        # Make a file writable
291
291
        osutils.make_writable('file')
292
 
        mode = osutils.lstat('file').st_mode
 
292
        mode = os.lstat('file').st_mode
293
293
        self.assertEqual(mode, mode | 0200)
294
294
 
295
295
        if osutils.has_symlinks():