From d43bfb51bb7e1ab60451d1853a3db31a33c7aa77 Mon Sep 17 00:00:00 2001
From: ulif <uli@gnufix.de>
Date: Tue, 28 Jul 2015 23:34:44 +0200
Subject: [PATCH] Fix bug in test.

---
 tests/test_wordlist.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_wordlist.py b/tests/test_wordlist.py
index c68aabc..0ab8b30 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
-- 
GitLab