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
.azure-pipelines
.github
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
.gitattributes -rw-r--r-- 1.8 KB
.gitignore -rw-r--r-- 1.8 KB
.travis.yml -rw-r--r-- 8.1 KB
CODE_OF_CONDUCT.md -rw-r--r-- 630 bytes
LICENSE -rw-r--r-- 13.6 KB
Makefile.pre.in -rw-r--r-- 67.0 KB
README.rst -rw-r--r-- 9.8 KB
aclocal.m4 -rw-r--r-- 20.2 KB
config.guess -rwxr-xr-x 43.1 KB
config.sub -rwxr-xr-x 35.4 KB
configure -rwxr-xr-x 494.2 KB
configure.ac -rw-r--r-- 164.7 KB
install-sh -rwxr-xr-x 15.0 KB
pyconfig.h.in -rw-r--r-- 44.4 KB
setup.py -rw-r--r-- 100.7 KB

README.rst

back to top