def tearDown(self):
        """
        Restore the saved PATH setting, and set all created files readable
        again so that they can be deleted easily.
        """
        os.chmod(os.path.join(self.bazbar, "executable"), stat.S_IWUSR)
        if self.oldPath is None:
            try:
                del os.environ['PATH']
            except KeyError:
                pass
        else:
            os.environ['PATH'] = self.oldPath

        Restore the saved PATH setting, and set all created files readable
        again so that they can be deleted easily.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_process.py