MCPcopy Create free account
hub / github.com/celery/celery / test_close_open_fds_reraises_other_errors

Function test_close_open_fds_reraises_other_errors

t/unit/utils/test_platforms.py:206–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204
205
206def test_close_open_fds_reraises_other_errors():
207 exc = OSError()
208 exc.errno = errno.EIO
209 with patch('celery.platforms._open_fds', return_value=[5]), \
210 patch('os.close', side_effect=exc), \
211 pytest.raises(OSError):
212 close_open_fds()
213
214
215def test_close_open_fds_falls_back_without_fd_dir():

Callers

nothing calls this directly

Calls 2

close_open_fdsFunction · 0.90
raisesMethod · 0.80

Tested by

no test coverage detected