diff --git a/test/test_index.py b/test/test_index.py index f4d4005e1..660ab3695 100644 --- a/test/test_index.py +++ b/test/test_index.py @@ -1064,19 +1064,19 @@ def test_hook_uses_shell_not_from_cwd(self, rw_dir, case): shutil.copy(fixture_path("polyglot"), hook_path("polyglot", repo.git_dir)) payload = Path(rw_dir, "payload.txt") - if type(_win_bash_status) in {WinBashStatus.Absent, WinBashStatus.WslNoDistro}: - # The real shell can't run, but the impostor should still not be used. - with self.assertRaises(HookExecutionError): - with maybe_chdir: - run_commit_hook("polyglot", repo.index) - self.assertFalse(payload.exists()) - else: - # The real shell should run, and not the impostor. - with maybe_chdir: - run_commit_hook("polyglot", repo.index) - self.assertFalse(payload.exists()) - output = Path(rw_dir, "output.txt").read_text(encoding="utf-8") - self.assertEqual(output, "Ran intended hook.\n") + # if type(_win_bash_status) in {WinBashStatus.Absent, WinBashStatus.WslNoDistro}: + # # The real shell can't run, but the impostor should still not be used. + # with self.assertRaises(HookExecutionError): + # with maybe_chdir: + # run_commit_hook("polyglot", repo.index) + # self.assertFalse(payload.exists()) + # else: + # The real shell should run, and not the impostor. + with maybe_chdir: + run_commit_hook("polyglot", repo.index) + self.assertFalse(payload.exists()) + output = Path(rw_dir, "output.txt").read_text(encoding="utf-8") + self.assertEqual(output, "Ran intended hook.\n") # @pytest.mark.xfail( # type(_win_bash_status) is WinBashStatus.Absent,