Explorar el Código

repr(exc) does not include .args on Python 2.4

Ask Solem hace 14 años
padre
commit
ad532dfce1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/tests/test_worker.py

+ 1 - 1
celery/tests/test_worker.py

@@ -703,7 +703,7 @@ class test_WorkController(unittest.TestCase):
 
         worker.on_timer_error(exc_info)
         logged = worker.logger.logged[0]
-        self.assertIn("foo", logged)
+        self.assertIn("KeyError", logged)
 
     def test_on_timer_tick(self):
         worker = WorkController(concurrency=1, loglevel=10)