Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit a134cfe

Browse files
committed
Restore buffered socket test coverage
1 parent 0a93a60 commit a134cfe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test_socket.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,13 @@ def test_socket_fill_resizes_if_needed(self):
235235
assert len(b.buffer) == 4
236236
assert b._index == 0
237237

238+
def test_socket_fill_raises_connection_errors(self):
239+
s = DummySocket()
240+
b = BufferedSocket(s)
241+
242+
with pytest.raises(ConnectionResetError):
243+
b.fill()
244+
238245
def test_advancing_sockets(self):
239246
s = DummySocket()
240247
b = BufferedSocket(s)

0 commit comments

Comments
 (0)