From 4f0b2bc4dec4eb3c4f0075bcebebeb126a5a6e88 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Thu, 2 Feb 2017 14:20:56 +0100 Subject: adapt coverage checks --- test/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/conftest.py b/test/conftest.py index ef262944..c44aa461 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -116,7 +116,7 @@ def pytest_runtestloop(session): prefix = os.getcwd() excluded_files = [os.path.normpath(f) for f in pytest.config.option.no_full_cov] measured_files = [os.path.normpath(os.path.relpath(f, prefix)) for f in cov.get_data().measured_files()] - measured_files = [f for f in measured_files if f not in excluded_files] + measured_files = [f for f in measured_files if not any(f.startswith(excluded_f) for excluded_f in excluded_files)] for name in pytest.config.option.full_cov: files = [f for f in measured_files if f.startswith(os.path.normpath(name))] -- cgit v1.2.3