diff options
Diffstat (limited to 'testing/test_file_finder.py')
-rw-r--r-- | testing/test_file_finder.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/test_file_finder.py b/testing/test_file_finder.py index c9409c4..d7b6d11 100644 --- a/testing/test_file_finder.py +++ b/testing/test_file_finder.py @@ -15,7 +15,10 @@ def inwd(request, wd, monkeypatch): wd.add_command = "git add ." wd.commit_command = "git commit -m test-{reason}" elif request.param == "hg": - wd("hg init") + try: + wd("hg init") + except FileNotFoundError: + pytest.skip("hg executable not found") wd.add_command = "hg add ." wd.commit_command = 'hg commit -m test-{reason} -u test -d "0 0"' (wd.cwd / "file1").touch() |