[issue44797] test_socket should expect warnings in truncated-data tests

2021-07-31 Thread Irit Katriel


Irit Katriel  added the comment:

Indeed, thanks.

--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> test_socket fails in MacOS High Sierra when running with -Werror

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44797] test_socket should expect warnings in truncated-data tests

2021-07-31 Thread Ned Deily


Ned Deily  added the comment:

Duplicate of Issue23828

--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44797] test_socket should expect warnings in truncated-data tests

2021-07-31 Thread Irit Katriel


Change by Irit Katriel :


--
nosy: +ncoghlan, vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44797] test_socket should expect warnings in truncated-data tests

2021-07-31 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +patch
pull_requests: +26027
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/27512

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44797] test_socket should expect warnings in truncated-data tests

2021-07-31 Thread Irit Katriel


New submission from Irit Katriel :

I believe these warnings are a feature so the tests should expect them. Patch 
included.


% ./python.exe -E -We -m test -v test_socket

==
ERROR: testSecondCmsgTruncInData 
(test.test_socket.RecvmsgRFC3542AncillaryUDP6Test)
--
Traceback (most recent call last):
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_socket.py", line 4176, 
in testSecondCmsgTruncInData
msg, ancdata, flags, addr = self.doRecvmsg(
^^^
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_socket.py", line 2701, 
in doRecvmsg
result = sock.recvmsg(bufsize, *args)
 
RuntimeWarning: received malformed or improperly-truncated ancillary data

==
ERROR: testSingleCmsgTruncInData 
(test.test_socket.RecvmsgRFC3542AncillaryUDP6Test)
--
Traceback (most recent call last):
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_socket.py", line 4072, 
in testSingleCmsgTruncInData
msg, ancdata, flags, addr = self.doRecvmsg(
^^^
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_socket.py", line 2701, 
in doRecvmsg
result = sock.recvmsg(bufsize, *args)
 
RuntimeWarning: received malformed or improperly-truncated ancillary data

==
ERROR: testSecondCmsgTruncInData 
(test.test_socket.RecvmsgIntoRFC3542AncillaryUDP6Test)
--
Traceback (most recent call last):
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_socket.py", line 4176, 
in testSecondCmsgTruncInData
msg, ancdata, flags, addr = self.doRecvmsg(
^^^
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_socket.py", line 2792, 
in doRecvmsg
result = sock.recvmsg_into([buf], *args)
 ^^^
RuntimeWarning: received malformed or improperly-truncated ancillary data

==
ERROR: testSingleCmsgTruncInData 
(test.test_socket.RecvmsgIntoRFC3542AncillaryUDP6Test)
--
Traceback (most recent call last):
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_socket.py", line 4072, 
in testSingleCmsgTruncInData
msg, ancdata, flags, addr = self.doRecvmsg(
^^^
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_socket.py", line 2792, 
in doRecvmsg
result = sock.recvmsg_into([buf], *args)
 ^^^
RuntimeWarning: received malformed or improperly-truncated ancillary data

==
ERROR: testCmsgTruncLen0 (test.test_socket.RecvmsgSCMRightsStreamTest)
--
Traceback (most recent call last):
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_socket.py", line 3749, 
in testCmsgTruncLen0
self.checkTruncatedArray(ancbuf=socket.CMSG_LEN(0), maxdata=0)
^^
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_socket.py", line 3729, 
in checkTruncatedArray
msg, ancdata, flags, addr = self.doRecvmsg(self.serv_sock,
^^
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_socket.py", line 2701, 
in doRecvmsg
result = sock.recvmsg(bufsize, *args)
 
RuntimeWarning: received malformed or improperly-truncated ancillary data

==
ERROR: testCmsgTruncLen0Plus1 (test.test_socket.RecvmsgSCMRightsStreamTest)
--
Traceback (most recent call last):
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_socket.py", line 3755, 
in testCmsgTruncLen0Plus1
self.checkTruncatedArray(ancbuf=socket.CMSG_LEN(0) + 1, maxdata=1)
^^
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_socket.py", line 3729, 
in checkTruncatedArray
msg, ancdata, flags, addr = self.doRecvmsg(self.serv_sock,
^^
  File "/Users/iritkatriel/src/cpython-1/Lib/test/test_socket.py", line 2701, 
in doRecvmsg
result = sock.recvmsg(bufsize, *args)
 
RuntimeWarning: received malformed or improperly-truncated ancillary da