Browse Source

[testsuite] Should not close all open fds ;)

Ask Solem 11 years ago
parent
commit
921c3aa8e3
1 changed files with 2 additions and 1 deletions
  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()