summaryrefslogtreecommitdiff
path: root/tests/test_vocabcompiler.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-12-30 19:37:24 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2014-12-30 19:41:55 +0100
commit87262c75c3e645358e6587b64c8bd2adca9477b2 (patch)
tree1a9d93728f5edfaa049ddfad2639a3c5cdb64793 /tests/test_vocabcompiler.py
parent7d80c7d7b6c983cd631986b3c74672389c8916d9 (diff)
downloadjasper-client-87262c75c3e645358e6587b64c8bd2adca9477b2.tar.gz
jasper-client-87262c75c3e645358e6587b64c8bd2adca9477b2.zip
Add skip conditions to unittests for dependency checking
Diffstat (limited to 'tests/test_vocabcompiler.py')
-rw-r--r--tests/test_vocabcompiler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_vocabcompiler.py b/tests/test_vocabcompiler.py
index 561440a..f9e427f 100644
--- a/tests/test_vocabcompiler.py
+++ b/tests/test_vocabcompiler.py
@@ -90,8 +90,8 @@ class TestVocabulary(unittest.TestCase):
self.vocab.compile(phrases, force=True)
-@unittest.skipIf(vocabcompiler.cmuclmtk is None,
- "CMUCLMTK not present")
+@unittest.skipUnless(hasattr(vocabcompiler, 'cmuclmtk'),
+ "CMUCLMTK not present")
class TestPocketsphinxVocabulary(TestVocabulary):
VOCABULARY = vocabcompiler.PocketsphinxVocabulary