diff --git a/tests/test_wordlist.py b/tests/test_wordlist.py index c68aabceb945317c9e546d1c8c036f62e8bafadd..0ab8b303184c55de63f7939f0f4616353d2ae20e 100644 --- a/tests/test_wordlist.py +++ b/tests/test_wordlist.py @@ -214,7 +214,7 @@ class TestWordList(object): # 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), "w") as my_open_file: + 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