From cadeb1ca9f05a1cc1ecfacab73c0b13770cebc81 Mon Sep 17 00:00:00 2001 From: Charles LeDoux Date: Wed, 27 Dec 2017 17:08:26 -0600 Subject: [PATCH] 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 --- tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/__init__.py b/tests/__init__.py index 1f82ccd..7c35d5f 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -53,7 +53,7 @@ def needs_program(name): def needs_one_program(programs): """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):