Explorar el Código

[testsuite] Should not close all open fds ;)

Ask Solem hace 11 años
padre
commit
921c3aa8e3
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      celery/tests/app/test_beat.py

+ 2 - 1
celery/tests/app/test_beat.py

@@ -462,7 +462,8 @@ class test_EmbeddedService(AppCase):
             def terminate(self):
                 self.terminated = True
 
-        s.run()
+        with patch('celery.platforms.close_open_fds'):
+            s.run()
         self.assertTrue(s.service.started)
 
         s._popen = _Popen()