From f43b3f50c5707be11d58f4f33dfb6e07392cffa2 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Fri, 8 Jan 2021 14:57:15 +0000 Subject: [PATCH] Fix warning lines counting as build identifiers in test --- test/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/utils.py b/test/utils.py index 5be952d0..2c1025b4 100644 --- a/test/utils.py +++ b/test/utils.py @@ -37,7 +37,10 @@ def cibuildwheel_get_build_identifiers(project_path, env=None): env=env, ) - return cmd_output.strip().split('\n') + lines = cmd_output.strip().split('\n') + + # ignore warning lines in output + return [l for l in lines if l != '' and not l.startswith('Warning ')] def cibuildwheel_run(project_path, package_dir='.', env=None, add_env=None, output_dir=None):