discourse_fixt.py 440 B

1234567891011121314
  1. # -*- coding: utf-8 -*-
  2. # FIXME: the entire discourse.doctest is skipped if Prover9/Mace4 is
  3. # not installed, but there are pure-python parts that don't need Prover9.
  4. def setup_module(module):
  5. from nose import SkipTest
  6. from nltk.inference.mace import Mace
  7. try:
  8. m = Mace()
  9. m._find_binary("mace4")
  10. except LookupError:
  11. raise SkipTest("Mace4/Prover9 is not available so discourse.doctest is skipped")