Ticket #5228: create_deleteable_files.patch

File create_deleteable_files.patch, 807 bytes (added by Max Haarhaus, 8 years ago)

Change the final chmod command in test_getPermissions_Windows to allow sub1 to be deleted, while maintaining the user permissions = group permissions = other permissions test.

  • twisted/test/test_paths.py

     
    14261426            self.path.child(b"sub1").chmod(mode)
    14271427            self.assertEqual(self.path.child(b"sub1").getPermissions(),
    14281428                              filepath.Permissions(mode))
    1429         self.path.child(b"sub1").chmod(0o511) #sanity check to make sure that
     1429        self.path.child(b"sub1").chmod(0o711) #sanity check to make sure that
    14301430        # user=group=other permissions
    14311431        self.assertEqual(self.path.child(b"sub1").getPermissions().shorthand(),
    1432                           "r-xr-xr-x")
     1432                          "rwxrwxrwx")
    14331433
    14341434
    14351435    def test_whetherBlockOrSocket(self):