浏览代码

Fixed Tyrant Skiptests

Ask Solem 15 年之前
父节点
当前提交
119b0a4095
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      celery/tests/test_backends/test_tyrant.py

+ 4 - 2
celery/tests/test_backends/test_tyrant.py

@@ -43,8 +43,10 @@ def get_tyrant_or_SkipTest():
         return tb
         return tb
     except ImproperlyConfigured, exc:
     except ImproperlyConfigured, exc:
         if "need to install" in str(exc):
         if "need to install" in str(exc):
-            return emit_no_tyrant_msg("not installed")
-        return emit_no_tyrant_msg("not configured")
+            emit_no_tyrant_msg("not installed")
+            raise SkipTest("Tokyo Tyrant is not installed")
+        emit_no_tyrant_msg("not configured")
+        raise SkipTest("Tokyo Tyrant not configured")
 
 
 
 
 class TestTyrantBackend(unittest.TestCase):
 class TestTyrantBackend(unittest.TestCase):