Ask Solem 8 years ago
parent
commit
31b5ce229c
2 changed files with 1 additions and 2 deletions
  1. 0 1
      celery/worker/worker.py
  2. 1 1
      t/unit/worker/test_loops.py

+ 0 - 1
celery/worker/worker.py

@@ -16,7 +16,6 @@ from __future__ import absolute_import, unicode_literals
 
 import os
 import sys
-import traceback
 try:
     import resource
 except ImportError:  # pragma: no cover

+ 1 - 1
t/unit/worker/test_loops.py

@@ -197,7 +197,7 @@ class test_asynloop:
 
     def test_on_task_pool_raises(self):
         x, on_task, msg, strategy = self.task_context(self.add.s(2, 2))
-        exc = strategy.side_effect = ValueError()
+        strategy.side_effect = ValueError()
         with pytest.raises(ValueError):
             on_task(msg)