diff options
author | karl ding <karlding@users.noreply.github.com> | 2021-05-04 20:37:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-04 20:37:13 (GMT) |
commit | 355bae88822bee4de6092b63d69c5a5dad393a16 (patch) | |
tree | 6ff02a4b4eca8ecb1e3fd9362d7995e421ff788a /Python/errors.c | |
parent | 09490298d4485e9322edc6e1e8e15eb66c586164 (diff) | |
download | cpython-355bae88822bee4de6092b63d69c5a5dad393a16.zip cpython-355bae88822bee4de6092b63d69c5a5dad393a16.tar.gz cpython-355bae88822bee4de6092b63d69c5a5dad393a16.tar.bz2 |
bpo-40297: Fix test_socket.CANTest.testSendFrame (GH-19548)
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.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions