diff options
| author | Benjamin Peterson <benjamin@python.org> | 2015-10-25 03:06:04 (GMT) |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2015-10-25 03:06:04 (GMT) |
| commit | d9dbf493837b798757ed68dbd97dd55cd0c6efa5 (patch) | |
| tree | ab712037d2f289ce073d32c7b35c6a023a2034c3 /Lib/test/test_socket.py | |
| parent | 458123bd18e663919f441a69e01e8c76d5b01a98 (diff) | |
| download | cpython-d9dbf493837b798757ed68dbd97dd55cd0c6efa5.zip cpython-d9dbf493837b798757ed68dbd97dd55cd0c6efa5.tar.gz cpython-d9dbf493837b798757ed68dbd97dd55cd0c6efa5.tar.bz2 | |
accepted sockets shouldn't inherit the SOCK_NONBLOCK flag (closes #25471)
Diffstat (limited to 'Lib/test/test_socket.py')
| -rw-r--r-- | Lib/test/test_socket.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index d319112..a92265d 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -3863,6 +3863,7 @@ class NonBlockingTCPTests(ThreadedTCPSocketTest): read, write, err = select.select([self.serv], [], []) if self.serv in read: conn, addr = self.serv.accept() + self.assertIsNone(conn.gettimeout()) conn.close() else: self.fail("Error trying to do accept after select.") |
