'Restore the saved PATH setting, and set all created files readable
again so that they can be deleted easily.'

def tearDown(self):

    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
