mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
Issue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX.
This commit is contained in:
parent
258e4d372f
commit
3ad2d70947
@ -161,10 +161,6 @@ class PollTests(unittest.TestCase):
|
||||
|
||||
pollster = select.poll()
|
||||
# Issue 15989
|
||||
self.assertRaises(OverflowError, pollster.register, 0,
|
||||
_testcapi.SHRT_MAX + 1)
|
||||
self.assertRaises(OverflowError, pollster.register, 0,
|
||||
_testcapi.USHRT_MAX + 1)
|
||||
self.assertRaises(OverflowError, pollster.poll, _testcapi.INT_MAX + 1)
|
||||
self.assertRaises(OverflowError, pollster.poll, _testcapi.UINT_MAX + 1)
|
||||
|
||||
|
@ -29,6 +29,8 @@ Core and Builtins
|
||||
Library
|
||||
-------
|
||||
|
||||
- Issue #17919: select.poll.poll() again works with poll.POLLNVAL on AIX.
|
||||
|
||||
- Issue #19063: if a Charset's body_encoding was set to None, the email
|
||||
package would generate a message claiming the Content-Transfer-Encoding
|
||||
was 7bit, and produce garbage output for the content. This now works.
|
||||
|
@ -380,11 +380,10 @@ static PyObject *
|
||||
poll_register(pollObject *self, PyObject *args)
|
||||
{
|
||||
PyObject *o, *key, *value;
|
||||
int fd;
|
||||
short events = POLLIN | POLLPRI | POLLOUT;
|
||||
int fd, events = POLLIN | POLLPRI | POLLOUT;
|
||||
int err;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "O|h:register", &o, &events)) {
|
||||
if (!PyArg_ParseTuple(args, "O|i:register", &o, &events)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user