From 08e236df69b6c9308b519ba09c12194cf3cd62c2 Mon Sep 17 00:00:00 2001 From: Conor Patrick Date: Tue, 26 Mar 2019 16:14:28 -0400 Subject: [PATCH] fix code quality issues x/2 --- tools/testing/tests/fido2.py | 1 - tools/testing/tests/tester.py | 2 +- tools/testing/tests/u2f.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/testing/tests/fido2.py b/tools/testing/tests/fido2.py index 105e279..999f7d5 100644 --- a/tools/testing/tests/fido2.py +++ b/tools/testing/tests/fido2.py @@ -1,5 +1,4 @@ from __future__ import print_function, absolute_import, unicode_literals -import sys import time from random import randint import array diff --git a/tools/testing/tests/tester.py b/tools/testing/tests/tester.py index 09d1e8d..e0ae813 100644 --- a/tools/testing/tests/tester.py +++ b/tools/testing/tests/tester.py @@ -2,7 +2,7 @@ import time, struct from fido2.hid import CtapHidDevice from fido2.client import Fido2Client -from fido2.ctap1 import CTAP1, ApduError +from fido2.ctap1 import CTAP1 from fido2.utils import Timeout from fido2.ctap import CtapError diff --git a/tools/testing/tests/u2f.py b/tools/testing/tests/u2f.py index 847769b..d1e8033 100644 --- a/tools/testing/tests/u2f.py +++ b/tools/testing/tests/u2f.py @@ -47,7 +47,7 @@ class U2FTests(Tester): with Test("Check bad CLA"): try: - res = self.ctap1.send_apdu(1, CTAP1.INS.VERSION, 0, 0, b"abc") + self.ctap1.send_apdu(1, CTAP1.INS.VERSION, 0, 0, b"abc") except ApduError as e: assert e.code == 0x6E00