def METHOD_NAME(self):
    from _testcapi import USHRT_MAX
    pollster = select.devpoll()
    w, r = os.pipe()
    pollster.register(w)
    # Issue #17919
    self.assertRaises(OverflowError, pollster.register, 0, USHRT_MAX + 1)
    self.assertRaises(OverflowError, pollster.modify, 1, USHRT_MAX + 1)