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:
Charles LeDoux 2017-12-27 17:08:26 -06:00
parent 4d1b37a58d
commit cadeb1ca9f
1 changed files with 1 additions and 1 deletions

View File

@ -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):