Skip to content

Commit

Permalink
Skip running svn tests when svn isn't installed
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Vardhan <[email protected]>
  • Loading branch information
vharsh committed Oct 14, 2019
1 parent a0b75cc commit dfe6cdf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,10 @@ def need_bzr(fn):
'Bazaar', ('bzr', 'version', '--short')
)(fn))

def need_svn(fn):
return pytest.mark.svn(need_executable(
'Subversion', ('svn', '--version')
)(fn))

def need_mercurial(fn):
return pytest.mark.mercurial(need_executable(
Expand Down

0 comments on commit dfe6cdf

Please sign in to comment.