def test_run_with_no_which(self):
        try:
            which_backup = shutil.which
        except __HOLE__: # pragma: no cover
            return
        del shutil.which
        try:
            self._test(*GetExcecutableTests.empty)
            self.assertFalse(hasattr(shutil, 'which'))
            self._test(*GetExcecutableTests.in_path_2)
            self.assertFalse(hasattr(shutil, 'which'))
        finally:
            shutil.which = which_backup
dataset/ETHPy150Open epsy/clize/clize/tests/test_runner.py/GetExcecutableTests.test_run_with_no_which