diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-07-03 19:32:20 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-07-03 19:32:20 +0200 |
commit | 6af29597ccc59c91e48a5f81a9ed474392cab8e8 (patch) | |
tree | 84eaa806025dbd795f0207781cb0dcacd2616515 /unittest/conftest.py | |
parent | 9bad47a2a8383326258d8c808ba5e5684e839c9b (diff) | |
download | libnitrokey-6af29597ccc59c91e48a5f81a9ed474392cab8e8.tar.gz libnitrokey-6af29597ccc59c91e48a5f81a9ed474392cab8e8.tar.bz2 |
Ignore whitespace in C API header
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/conftest.py')
-rw-r--r-- | unittest/conftest.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |