From bf79a76b3407e89c6b4aa1462866c292c4b2a3c6 Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Tue, 9 Nov 2010 15:41:18 +0100 Subject: [PATCH] tests setup: Ignore import errors --- kombu/tests/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kombu/tests/__init__.py b/kombu/tests/__init__.py index 6328c34c..86674d43 100644 --- a/kombu/tests/__init__.py +++ b/kombu/tests/__init__.py @@ -27,6 +27,9 @@ moduleindex = ("kombu.abstract", def setup(): # so coverage sees all our modules. for module in moduleindex: - __import__(module) + try: + __import__(module) + except ImportError: + pass