Skip to content

Commit 9ed9ab5

Browse files
committed
Fixes test
1 parent 5c7f8c5 commit 9ed9ab5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

celery/tests/bin/test_worker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,9 +645,10 @@ def test_worker_term_handler_only_stop_MainProcess(self):
645645
state.should_stop = False
646646

647647
@disable_stdouts
648+
@patch('celery.platforms.close_open_fds')
648649
@patch('atexit.register')
649650
@patch('os.close')
650-
def test_worker_restart_handler(self, _close, register):
651+
def test_worker_restart_handler(self, _close, register, close_open):
651652
if getattr(os, 'execv', None) is None:
652653
raise SkipTest('platform does not have excv')
653654
argv = []

0 commit comments

Comments
 (0)