mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #23708: Split assertion expression in two assertions in _Py_read() and
_Py_write() to know which test failed on the buildbot "AMD64 Snow Leop 3.x".
This commit is contained in:
parent
fbd6f9ed12
commit
7f04d4d4b7
1 changed files with 4 additions and 2 deletions
|
@ -1178,7 +1178,8 @@ _Py_read(int fd, void *buf, size_t count)
|
|||
if (async_err) {
|
||||
/* read() was interrupted by a signal (failed with EINTR)
|
||||
* and the Python signal handler raised an exception */
|
||||
assert(errno == EINTR && PyErr_Occurred());
|
||||
assert(errno == EINTR);
|
||||
assert(PyErr_Occurred());
|
||||
return -1;
|
||||
}
|
||||
if (n < 0) {
|
||||
|
@ -1254,7 +1255,8 @@ _Py_write(int fd, const void *buf, size_t count)
|
|||
if (async_err) {
|
||||
/* write() was interrupted by a signal (failed with EINTR)
|
||||
* and the Python signal handler raised an exception */
|
||||
assert(errno == EINTR && PyErr_Occurred());
|
||||
assert(errno == EINTR);
|
||||
assert(PyErr_Occurred());
|
||||
return -1;
|
||||
}
|
||||
if (n < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue