Skip to content

Commit 8df0e46

Browse files
committed
Try to fix windows CI errors
1 parent 76c4345 commit 8df0e46

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/snippets/stdlib_socket.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
with assertRaises(TypeError):
4444
s.bind((888, 8888))
4545

46+
s.close()
47+
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
4648
s.bind(("127.0.0.1", 0))
4749
with assertRaises(OSError):
4850
s.recv(100)
@@ -93,10 +95,6 @@
9395
with assertRaises(OSError):
9496
s.bind(("1.2.3.4", 888))
9597

96-
s.bind(("127.0.0.1", 0))
97-
with assertRaises(OSError):
98-
s.sendto(MESSAGE_A, ("1.2.3.4", 888))
99-
10098
s.close()
10199
### Errors
102100
with assertRaises(OSError):

0 commit comments

Comments
 (0)