diff --git a/tests/test_wordlist.py b/tests/test_wordlist.py index d88d6ca3d773360a4328d7fe387efa1f77385ad5..1665adc6f1af005e79e4c86cd9e9bc600a4ab0e5 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