Skip to content
Snippets Groups Projects
Commit dbc0db20 authored by ulif's avatar ulif
Browse files

Remove obsolete test.

parent 59283682
No related branches found
No related tags found
No related merge requests found
......@@ -169,15 +169,6 @@ class TestWordList(object):
w_list = WordList(str(in_file))
assert w_list.fd is not None
def test_create_accepts_open_file(self, tmpdir):
# if we pass in an open file, it will be used
in_file = tmpdir.mkdir("work").join("mywordlist")
in_file.write("foo\n")
with open(str(in_file), "r") as my_open_file:
w_list = WordList(my_open_file)
assert w_list.fd is not None
assert w_list.path is 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"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment