Ticket #5228: change_permissions_after_test.patch

File change_permissions_after_test.patch, 581 bytes (added by Max Haarhaus, 8 years ago)

Change the file permissions during cleanup to allow for deletion.

  • twisted/test/test_paths.py

     
    14311431        self.assertEqual(self.path.child(b"sub1").getPermissions().shorthand(),
    14321432                          "r-xr-xr-x")
    14331433
     1434        # Change permission after test so file can be deleted
     1435        self.addCleanup(self.path.child(b"sub1").chmod, 0o777)
    14341436
     1437
    14351438    def test_whetherBlockOrSocket(self):
    14361439        """
    14371440        Ensure that a file is not a block or socket