Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Try to fix windows CI errors
  • Loading branch information
palaviv committed Mar 9, 2019
commit 8df0e46c322fc76b4095f3393fc90a646f744e0a
6 changes: 2 additions & 4 deletions tests/snippets/stdlib_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
with assertRaises(TypeError):
s.bind((888, 8888))

s.close()
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind(("127.0.0.1", 0))
with assertRaises(OSError):
s.recv(100)
Expand Down Expand Up @@ -93,10 +95,6 @@
with assertRaises(OSError):
s.bind(("1.2.3.4", 888))

s.bind(("127.0.0.1", 0))
with assertRaises(OSError):
s.sendto(MESSAGE_A, ("1.2.3.4", 888))

s.close()
### Errors
with assertRaises(OSError):
Expand Down