From effcbbd25f0727a986ee71ebf64db9308c911848 Mon Sep 17 00:00:00 2001 From: ulif <uli@gnufix.de> Date: Sat, 3 Jun 2017 22:59:10 +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 bbcc7d2..d88d6ca 100644 --- a/tests/test_wordlist.py +++ b/tests/test_wordlist.py @@ -331,11 +331,8 @@ class TestWordList(object): # we can tell if a wordlist is not signed in_file = tmpdir.mkdir("work").join("mywordlist") in_file.write("a\nb\n") - with open(in_file.strpath, 'r') as fd: - w_list = WordList(fd) - w_list.fd = fd - result = w_list.is_signed() - assert result is False + w_list = WordList(in_file.strpath) + assert w_list.is_signed() is False def test_refine_entry_strips(self, wordlist): # we strip() entries -- GitLab