mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
skip if swift not installed
This commit is contained in:
parent
ca731268a4
commit
ac2520c86f
2 changed files with 8 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import distutils
|
||||
import os.path
|
||||
import shutil
|
||||
|
||||
|
|
@ -68,6 +69,11 @@ skipif_slowtests_false = pytest.mark.skipif(
|
|||
reason='slowtests=false',
|
||||
)
|
||||
|
||||
skipif_cant_run_swift = pytest.mark.skipif(
|
||||
distutils.spawn.find_executable('swift') is None,
|
||||
reason='swift isn\'t installed or can\'t be found'
|
||||
)
|
||||
|
||||
xfailif_windows_no_ruby = pytest.mark.xfail(
|
||||
os.name == 'nt',
|
||||
reason='Ruby support not yet implemented on windows.',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue