Skip to content

Commit

Permalink
Yet another test logic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aCampello committed Nov 1, 2020
1 parent 9949918 commit de100c1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/test_detector_named_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ class NamedEntityTestCase(unittest.TestCase, BaseTestCase):

def setUp(self):
unsupported_version = (sys.version_info.major, sys.version_info.minor) < (3, 6)
unittest.TestCase.skipTest(
unsupported_version,
"Named entity detector not supported for python<3.6"
)
if not unsupported_version:

if unsupported_version:
unittest.TestCase.skipTest(
unsupported_version,
"Named entity detector not supported for python<3.6"
)
else:
self.detector = NamedEntityDetector()

def _assert_filth_type_and_pos(self, doc_list, beg_end_list, filth_class):
Expand Down

0 comments on commit de100c1

Please sign in to comment.