GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Refactored TestTLSStream.test_receive_invalid_max_bytes() to be less … · agronholm/anyio@6f82b25

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tests/streams
    • test_tls.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tests/streams/test_tls.py‎

Copy file name to clipboardExpand all lines: tests/streams/test_tls.py
+2-5Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,11 @@ async def test_receive_invalid_max_bytes(
112112

113113
def serve_sync() -> None:
114114
nonlocal server_exc
115-
conn, addr = server_sock.accept()
116115
try:
117-
conn.settimeout(5)
116+
conn, addr = server_sock.accept()
117+
conn.close()
118118
except BaseException as exc:
119119
server_exc = exc
120-
finally:
121-
conn.close()
122120

123121
server_sock = server_context.wrap_socket(
124122
socket.socket(), server_side=True, suppress_ragged_eofs=True
@@ -134,7 +132,6 @@ def serve_sync() -> None:
134132
stream,
135133
hostname="localhost",
136134
ssl_context=client_context,
137-
standard_compatible=False,
138135
)
139136
with pytest.raises(
140137
ValueError, match="max_bytes must be a positive integer"

0 commit comments

Comments
0 (0)
You are visitor 01402605 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.