1. Mikhail Korobov
  2. DAWG

Commits

Mikhail Korobov  committed bfcca01

more specific test

  • Participants
  • Parent commits e87e410
  • Branches default

Comments (0)

Files changed (1)

File tests/test_dawg.py

View file
         d = dawg.DAWG()
         wrong_path = tempfile.mktemp()  # file doesn't exists
 
-        try:
+        with pytest.raises(IOError):
             d.load(wrong_path)
-        except:
-            pass                     # ignore error
+
         assert 'random-key' not in d # there is possible segfault
 
     def test_build_errors(self):