def METHOD_NAME(self):
    from _testcapi import USHRT_MAX, INT_MAX, UINT_MAX
    pollster = select.poll()
    pollster.register(1)
    # Issues #15989, #17919
    self.assertRaises(OverflowError, pollster.register, 0, USHRT_MAX + 1)
    self.assertRaises(OverflowError, pollster.modify, 1, USHRT_MAX + 1)
    self.assertRaises(OverflowError, pollster.poll, INT_MAX + 1)
    self.assertRaises(OverflowError, pollster.poll, UINT_MAX + 1)