aboutsummaryrefslogtreecommitdiff
path: root/unittest/conftest.py
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-06-20 12:03:28 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-06-20 12:03:28 +0200
commitf0f1691bc741da48bc2e1adfa4535026ae42d6d3 (patch)
treebca302e1843cffda095223ddc3506a1c7ad94d2c /unittest/conftest.py
parent6e44c2b11bd1be9e080f1179283c49f9bb8955a5 (diff)
downloadlibnitrokey-f0f1691bc741da48bc2e1adfa4535026ae42d6d3.tar.gz
libnitrokey-f0f1691bc741da48bc2e1adfa4535026ae42d6d3.tar.bz2
Replace *out function parameter with return value
Using return value instead of memory manipulation seem to be cleaner solution and less error prone due to avoiding pointer usage. Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/conftest.py')
-rw-r--r--unittest/conftest.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/unittest/conftest.py b/unittest/conftest.py
index 9af67ac..49f1502 100644
--- a/unittest/conftest.py
+++ b/unittest/conftest.py
@@ -44,7 +44,6 @@ def C(request=None):
cnt = 0
a = iter(declarations)
for declaration in a:
- if 'NK_device_model' in declaration: continue
if declaration.strip().startswith('NK_C_API'):
declaration = declaration.replace('NK_C_API', '').strip()
while ';' not in declaration: