Convert filter to list
because filters are (non-subscriptable) objects in py3
This commit is contained in:
parent
a694a2bc58
commit
aaf5f2b851
|
@ -52,10 +52,10 @@ def test_onlinetime(soup):
|
|||
nick = nick.text
|
||||
onlinetime = onlinetime.text
|
||||
# find corresponding client-object
|
||||
client = filter(
|
||||
client = list(filter(
|
||||
lambda c: c.nick == nick and c.onlinetime > timedelta(0),
|
||||
clients
|
||||
)
|
||||
))
|
||||
# assert existence
|
||||
assert client
|
||||
client = client[0]
|
||||
|
|
Loading…
Reference in New Issue