summaryrefslogtreecommitdiff
path: root/unittest/conftest.py
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-07-03 19:32:20 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-07-03 19:32:20 +0200
commit6af29597ccc59c91e48a5f81a9ed474392cab8e8 (patch)
tree84eaa806025dbd795f0207781cb0dcacd2616515 /unittest/conftest.py
parent9bad47a2a8383326258d8c808ba5e5684e839c9b (diff)
downloadlibnitrokey-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.py2
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()