From ddc762575d7ff9dc2b2160d176e365616ad110fb Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 29 Jan 2019 17:26:36 +0100 Subject: [PATCH] tests: fix flake8 errors in burntest --- trezorlib/tests/burn_tests/test_burntest.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/trezorlib/tests/burn_tests/test_burntest.py b/trezorlib/tests/burn_tests/test_burntest.py index e8d3d171ef..428a827a0d 100755 --- a/trezorlib/tests/burn_tests/test_burntest.py +++ b/trezorlib/tests/burn_tests/test_burntest.py @@ -20,7 +20,7 @@ import os import random import string -from trezorlib import debuglink, device +from trezorlib import device from trezorlib.debuglink import TrezorClientDebugLink from trezorlib.transport import enumerate_devices, get_transport @@ -31,9 +31,9 @@ def get_device(): return get_transport(path) else: devices = enumerate_devices() - for device in devices: - if hasattr(device, "find_debug"): - return device + for d in devices: + if hasattr(d, "find_debug"): + return d raise RuntimeError("No debuggable device found") @@ -48,9 +48,9 @@ i = 0 while True: # set private field device.apply_settings(client, use_passphrase=True) - assert client.features.passphrase_protection == True + assert client.features.passphrase_protection is True device.apply_settings(client, use_passphrase=False) - assert client.features.passphrase_protection == False + assert client.features.passphrase_protection is False # set public field label = "".join(random.choices(string.ascii_uppercase + string.digits, k=17))