ソースを参照

Removes error at end of test run from kombu memory backend QoS sanity assertions

Ask Solem 11 年 前
コミット
761578aa87
1 ファイル変更3 行追加0 行削除
  1. 3 0
      celery/tests/__init__.py

+ 3 - 0
celery/tests/__init__.py

@@ -25,6 +25,9 @@ os.environ['GEVENT_NOPATCH'] = 'yes'
 os.environ['KOMBU_DISABLE_LIMIT_PROTECTION'] = 'yes'
 os.environ['KOMBU_DISABLE_LIMIT_PROTECTION'] = 'yes'
 os.environ['CELERY_BROKER_URL'] = 'memory://'
 os.environ['CELERY_BROKER_URL'] = 'memory://'
 
 
+# virtual.QoS will not do sanity assertions when this is set.
+os.environ['KOMBU_UNITTEST'] = 'yes'
+
 
 
 def setup():
 def setup():
     if os.environ.get('COVER_ALL_MODULES') or '--with-coverage3' in sys.argv:
     if os.environ.get('COVER_ALL_MODULES') or '--with-coverage3' in sys.argv: