Skip to content

Commit

Permalink
TST failing test case for GH-28.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmike committed Dec 25, 2015
1 parent 0989efd commit fe697c6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/test_tagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def test_open_invalid_small_with_correct_signature(tmpdir):
tagger.open(str(tmp))


@pytest.mark.skipif(True, reason="this test segfaults, see https://github.com/chokkan/crfsuite/pull/24")
@pytest.mark.xfail(reason="see https://github.com/chokkan/crfsuite/pull/24",
run=False)
def test_open_invalid_with_correct_signature(tmpdir):
tmp = tmpdir.join('tmp.txt')
tmp.write(b"lCRFfoo"*100)
Expand All @@ -57,6 +58,14 @@ def test_open_invalid_with_correct_signature(tmpdir):
tagger.open(str(tmp))


@pytest.mark.xfail(reason="see https://github.com/tpeng/python-crfsuite/issues/28",
run=False)
def test_tag_not_opened(xseq):
tagger = Tagger()
with pytest.raises(Exception):
tagger.tag(xseq)


def test_tag(model_filename, xseq, yseq):
with Tagger().open(model_filename) as tagger:
assert tagger.tag(xseq) == yseq
Expand Down

0 comments on commit fe697c6

Please sign in to comment.