()
| 204 | |
| 205 | |
| 206 | def 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 | |
| 215 | def test_close_open_fds_falls_back_without_fd_dir(): |
nothing calls this directly
no test coverage detected