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

Method test_when_infinity

t/unit/utils/test_platforms.py:335–340  ·  view source on GitHub ↗
(self, getrlimit)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected