test: Fix lint issues.

This commit is contained in:
tecnovert
2023-08-01 15:57:01 +02:00
parent 547e50acb6
commit a13a5d4bf6
4 changed files with 11 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (c) 2020-2022 tecnovert
# Copyright (c) 2020-2023 tecnovert
# Distributed under the MIT software license, see the accompanying
# file LICENSE.txt or http://www.opensource.org/licenses/mit-license.php.
@@ -135,7 +135,7 @@ def wait_for_bid(delay_event, swap_client, bid_id, state=None, sent: bool = Fals
assert (len(bids) < 2)
for bid in bids:
if bid[2] == bid_id:
if type(state) == list:
if isinstance(state, list):
if bid[5] in state:
return
else: