https://github.com/python/cpython
Revision 8a12f46dd8c780de84d78e6dd8350230e52e0c46 authored by Miss Islington (bot) on 07 May 2021, 13:54:42 UTC, committed by GitHub on 07 May 2021, 13:54:42 UTC
The address tuple for CAN_RAW no longer returns the address family
after the introduction of CAN ISO-TP support in a30f6d45ac3. However,
updating test_socket.CANTest.testSendFrame was missed as part of the
change, so the test incorrectly attempts to index past the last tuple
item to retrieve the address family.

This removes the now-redundant check for equality against socket.AF_CAN,
as the tuple will not contain the address family.
(cherry picked from commit 355bae88822bee4de6092b63d69c5a5dad393a16)

Co-authored-by: karl ding <karlding@users.noreply.github.com>
1 parent f396864
History
Tip revision: 8a12f46dd8c780de84d78e6dd8350230e52e0c46 authored by Miss Islington (bot) on 07 May 2021, 13:54:42 UTC
bpo-40297: Fix test_socket.CANTest.testSendFrame (GH-19548) (#25957)
Tip revision: 8a12f46
File Mode Size
pgen
Python.asdl -rw-r--r-- 5.3 KB
acceler.c -rw-r--r-- 3.3 KB
asdl.py -rw-r--r-- 12.6 KB
asdl_c.py -rw-r--r-- 44.3 KB
grammar1.c -rw-r--r-- 1.0 KB
listnode.c -rw-r--r-- 1.2 KB
myreadline.c -rw-r--r-- 11.6 KB
node.c -rw-r--r-- 5.1 KB
parser.c -rw-r--r-- 12.4 KB
parser.h -rw-r--r-- 1.4 KB
parsetok.c -rw-r--r-- 14.2 KB
token.c -rw-r--r-- 4.5 KB
tokenizer.c -rw-r--r-- 55.9 KB
tokenizer.h -rw-r--r-- 3.7 KB

back to top