From a5e8dc6b9c6a487cb0e51e35f9c60c1d7e80fb4d Mon Sep 17 00:00:00 2001
From: ulif <uli@gnufix.de>
Date: Sat, 3 Jun 2017 23:04:07 +0200
Subject: [PATCH] Fix test.

We will not accept filedescriptors as `WordList` arguments anymore.
---
 tests/test_wordlist.py | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/tests/test_wordlist.py b/tests/test_wordlist.py
index d88d6ca..1665adc 100644
--- a/tests/test_wordlist.py
+++ b/tests/test_wordlist.py
@@ -321,11 +321,8 @@ class TestWordList(object):
         # we recognize signed wordlists
         in_path = os.path.join(
             os.path.dirname(__file__), "sample_signed_wordlist.asc")
-        with open(in_path, "r") as fd:
-            w_list = WordList(fd)
-            w_list.fd = fd
-            result = w_list.is_signed()
-        assert result is True
+        w_list = WordList(in_path)
+        assert w_list.is_signed() is True
 
     def test_is_signed_detects_unsigned_files(self, tmpdir):
         # we can tell if a wordlist is not signed
-- 
GitLab