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

Method on_setgroups

t/unit/utils/test_platforms.py:910–914  ·  view source on GitHub ↗
(groups)

Source from the content-addressed store, hash-verified

908 def test_setgroups_hack_ValueError(self, setgroups):
909
910 def on_setgroups(groups):
911 if len(groups) <= 200:
912 setgroups.return_value = True
913 return
914 raise ValueError()
915
916 setgroups.side_effect = on_setgroups
917 _setgroups_hack(list(range(400)))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected