From 6af29597ccc59c91e48a5f81a9ed474392cab8e8 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Mon, 3 Jul 2017 19:32:20 +0200 Subject: Ignore whitespace in C API header Signed-off-by: Szczepan Zalega --- unittest/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unittest/conftest.py') diff --git a/unittest/conftest.py b/unittest/conftest.py index c8d51af..04e85ff 100644 --- a/unittest/conftest.py +++ b/unittest/conftest.py @@ -22,7 +22,7 @@ def C(request): a = iter(declarations) for declaration in a: - if declaration.startswith('NK_C_API'): + if declaration.strip().startswith('NK_C_API'): declaration = declaration.replace('NK_C_API', '').strip() while ';' not in declaration: declaration += (next(a)).strip() -- cgit v1.2.1