def METHOD_NAME(self):
    from _testcapi import INT_MAX, INT_MIN
    # Issue 15989
    with self.assertRaises(OverflowError):
        fcntl.fcntl(INT_MAX + 1, fcntl.F_SETFL, os.O_NONBLOCK)
    with self.assertRaises(OverflowError):
        fcntl.fcntl(BadFile(INT_MAX + 1), fcntl.F_SETFL, os.O_NONBLOCK)
    with self.assertRaises(OverflowError):
        fcntl.fcntl(INT_MIN - 1, fcntl.F_SETFL, os.O_NONBLOCK)
    with self.assertRaises(OverflowError):
        fcntl.fcntl(BadFile(INT_MIN - 1), fcntl.F_SETFL, os.O_NONBLOCK)