From aaf5f2b851d25221156a5a2ae7d28a2d7735abf6 Mon Sep 17 00:00:00 2001
From: Thor77 <thor77@thor77.org>
Date: Sat, 4 Mar 2017 00:02:41 +0100
Subject: [PATCH] Convert filter to list

because filters are (non-subscriptable) objects in py3
---
 tsstats/tests/test_template.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tsstats/tests/test_template.py b/tsstats/tests/test_template.py
index e098b5b..39ac015 100644
--- a/tsstats/tests/test_template.py
+++ b/tsstats/tests/test_template.py
@@ -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]