From b285236902353f44d406244aca216c59a2be492f Mon Sep 17 00:00:00 2001
From: ulif <uli@gnufix.de>
Date: Sun, 4 Jun 2017 21:23:41 +0200
Subject: [PATCH] Remove obsolete test.

---
 tests/test_wordlist.py | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/tests/test_wordlist.py b/tests/test_wordlist.py
index 0e277c8..61ca47b 100644
--- a/tests/test_wordlist.py
+++ b/tests/test_wordlist.py
@@ -169,16 +169,6 @@ class TestWordList(object):
         w_list = WordList(str(in_file))
         assert w_list.fd is not None
 
-    def test_create_accepts_fd_with_broken_seek(self, argv_handler):
-        # we accept files that have no working seek() (like sys.stdin)
-        fd = StringIO(b"word1\nword2\n".decode("utf-8"))
-
-        def broken_seek(num):
-            raise IOError("Illegal seek")
-        fd.seek = broken_seek
-        w_list = WordList(fd)
-        assert w_list.fd is not fd
-
     def test_file_simple(self, tmpdir):
         # we handle simple files correctly
         in_file = tmpdir.mkdir("work").join("mywordlist")
-- 
GitLab