def tearDown(self):
        """
        Restore back write rights on created paths: if tests modified the
        rights, that will allow the paths to be removed easily afterwards.
        """
        os.chmod(self.dir, 0o777)
        if os.path.exists(self.path):
            os.chmod(self.path, 0o777)

        Restore back write rights on created paths: if tests modified the
        rights, that will allow the paths to be removed easily afterwards.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_logfile.py