Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Skip halting test on Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrochukM committed Jul 28, 2019
1 parent 40645e5 commit 7395228
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/encoders/text/test_moses_encoder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pickle
import sys

import pytest

Expand All @@ -15,7 +16,8 @@ def input_():
def encoder(input_):
return MosesEncoder([input_])


@pytest.mark.skipif(sys.version_info >= (3,7),
reason="Running NLTK moses with Python 3.7 halts on travis.")
def test_moses_encoder(encoder, input_):
# TEST adapted from example in http://www.nltk.org/_modules/nltk/tokenize/moses.html
expected_tokens = [
Expand Down

0 comments on commit 7395228

Please sign in to comment.