]> granicus.if.org Git - python/commit
closes bpo-37405: Make socket.getsockname() always return a tuple for AF_CAN. (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 12 Sep 2019 10:34:28 +0000 (03:34 -0700)
committerBenjamin Peterson <benjamin@python.org>
Thu, 12 Sep 2019 10:34:28 +0000 (11:34 +0100)
commitf60fd95dcc189ace8c0a2177a394b9cc20389a1e
tree68804c3e33cdcfabc9a20e2e6cbc224d66338a57
parent52baf90a74f3a4573f4266bb4ca8569534db42a9
closes bpo-37405: Make socket.getsockname() always return a tuple for AF_CAN. (GH-14392) (GH-16018)

This fixes a regression from 3.5. In recent releases, `getsockname()` in the AF_CAN case has returned a string.
(cherry picked from commit 954900a3f98a8c0dea14dd575490237f3f8626b3)

Co-authored-by: bggardner <brent@ebrent.net>
Lib/test/test_socket.py
Misc/NEWS.d/next/Library/2019-09-11-20-27-41.bpo-37405.MG5xiY.rst [new file with mode: 0644]
Modules/socketmodule.c