Skip to content

Commit 7919305

Browse files
committed
gh-160561: Use AF_INET in testFromFdError so it runs on Windows
1 parent 86b7495 commit 7919305

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Lib/test/test_socket.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3202,9 +3202,9 @@ def testFromFdError(self):
32023202
with self.assertRaises(TypeError):
32033203
socket.fromfd(fd, "not-a-valid-family", socket.SOCK_STREAM)
32043204
with self.assertRaises(TypeError):
3205-
socket.fromfd(fd, socket.AF_UNIX, "not-a-valid-type")
3205+
socket.fromfd(fd, socket.AF_INET, "not-a-valid-type")
32063206
with self.assertRaises(OverflowError):
3207-
socket.fromfd(fd, socket.AF_UNIX, 1 << 100)
3207+
socket.fromfd(fd, socket.AF_INET, 1 << 100)
32083208

32093209
self.assertEqual(os_helper.fd_count(), fd_count_before)
32103210

0 commit comments

Comments
 (0)