MCPcopy
hub / github.com/celery/celery / test_setgroups

Method test_setgroups

t/unit/utils/test_platforms.py:800–804  ·  view source on GitHub ↗
(self, hack)

Source from the content-addressed store, hash-verified

798 @t.skip.if_win32
799 @patch('celery.platforms._setgroups_hack')
800 def test_setgroups(self, hack):
801 with patch('os.sysconf') as sysconf:
802 sysconf.return_value = 100
803 setgroups(list(range(400)))
804 hack.assert_called_with(list(range(100)))
805
806 @t.skip.if_win32
807 @patch('celery.platforms._setgroups_hack')

Callers

nothing calls this directly

Calls 1

setgroupsFunction · 0.90

Tested by

no test coverage detected