Mark Stover пре 15 година
родитељ
комит
3fd3274294
3 измењених фајлова са 4 додато и 6 уклоњено
  1. 2 5
      celery/tests/test_backends/test_tyrant.py
  2. 1 1
      contrib/requirements/test.txt
  3. 1 0
      testproj/settings.py

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

@@ -34,11 +34,8 @@ def get_tyrant_or_None():
         tb = TyrantBackend()
         try:
             tb.open()
-        except socket.error, exc:
-            if exc.errno == errno.ECONNREFUSED:
-                return emit_no_tyrant_msg("not running")
-            else:
-                raise
+        except socket.error:
+            return emit_no_tyrant_msg("not running")
         return tb
     except ImproperlyConfigured, exc:
         if "need to install" in str(exc):

+ 1 - 1
contrib/requirements/test.txt

@@ -1,4 +1,4 @@
-django-unittest-depth
+simplejson
 nose
 nose-cover3
 nosexunit

+ 1 - 0
testproj/settings.py

@@ -67,6 +67,7 @@ INSTALLED_APPS = (
     'django.contrib.contenttypes',
     'django.contrib.sessions',
     'django.contrib.sites',
+    'django_nose',
     'celery',
     'someapp',
     'someappwotask',