gh-110012: Fix RuntimeWarning in test_socket
#110013
+22
−8
Open