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

Method test_setgroups_sysconf_raises

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

Source from the content-addressed store, hash-verified

956 @t.skip.if_win32
957 @patch('celery.platforms._setgroups_hack')
958 def test_setgroups_sysconf_raises(self, hack):
959 with patch('os.sysconf') as sysconf:
960 sysconf.side_effect = ValueError()
961 setgroups(list(range(400)))
962 hack.assert_called_with(list(range(400)))
963
964 @t.skip.if_win32
965 @patch('os.getgroups')

Callers

nothing calls this directly

Calls 1

setgroupsFunction · 0.90

Tested by

no test coverage detected