Fix require_one_program to actually require only one
Why: * Currently uses an any which means *all* programs will be required. This change addresses the need by: * Switchs the *all* to an *any* so that at least one is required
This commit is contained in:
parent
4d1b37a58d
commit
cadeb1ca9f
|
@ -53,7 +53,7 @@ def needs_program(name):
|
||||||
|
|
||||||
def needs_one_program(programs):
|
def needs_one_program(programs):
|
||||||
"""Decorator skipping test if not one of given programs are available."""
|
"""Decorator skipping test if not one of given programs are available."""
|
||||||
return _need_func(lambda x: all(map(patoolib.util.find_program, x)), programs, 'programs')
|
return _need_func(lambda x: any(map(patoolib.util.find_program, x)), programs, 'programs')
|
||||||
|
|
||||||
|
|
||||||
def needs_module(name):
|
def needs_module(name):
|
||||||
|
|
Loading…
Reference in New Issue