diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-05-07 21:26:48 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-05-07 21:26:48 +0200 |
commit | 968aac09663bcee8dfaee8c894ba4a723df9a172 (patch) | |
tree | d3c1373efa1731a81262eb596221aa22b6897400 /testing/test_integration.py | |
parent | e7f0b4bfd9a1f86ba946469a91b6261366bc5f3e (diff) | |
download | setuptools-scm-968aac09663bcee8dfaee8c894ba4a723df9a172.tar.gz |
Skip git tests when git is unavailable
Diffstat (limited to 'testing/test_integration.py')
-rw-r--r-- | testing/test_integration.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/testing/test_integration.py b/testing/test_integration.py index a01ac8b..1c291db 100644 --- a/testing/test_integration.py +++ b/testing/test_integration.py @@ -7,7 +7,11 @@ from setuptools_scm.utils import do @pytest.fixture def wd(wd): - wd("git init") + try: + wd("git init") + except FileNotFoundError: + pytest.skip("git executable not found") + wd("git config user.email test@example.com") wd('git config user.name "a test"') wd.add_command = "git add ." |