(self, getrlimit)
| 333 | |
| 334 | @patch('resource.getrlimit') |
| 335 | def test_when_infinity(self, getrlimit): |
| 336 | with patch('os.sysconf') as sysconfig: |
| 337 | sysconfig.side_effect = KeyError() |
| 338 | getrlimit.return_value = [None, resource.RLIM_INFINITY] |
| 339 | default = object() |
| 340 | assert get_fdmax(default) is default |
| 341 | |
| 342 | @patch('resource.getrlimit') |
| 343 | def test_when_actual(self, getrlimit): |
nothing calls this directly
no outgoing calls
no test coverage detected