def METHOD_NAME(self):
    pollster = select.devpoll()
    w, r = os.pipe()
    pollster.register(w)
    # Issue #17919
    self.assertRaises(ValueError, pollster.register, 0, -1)
    self.assertRaises(OverflowError, pollster.register, 0, 1 << 64)
    self.assertRaises(ValueError, pollster.modify, 1, -1)
    self.assertRaises(OverflowError, pollster.modify, 1, 1 << 64)