| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
The original test didn't actually exercise the `if not sse.data: continue` code path. This rewrite: - Mocks the SSE event stream to include an empty "message" event - Uses httpx_sse.ServerSentEvent for accurate event simulation - Uses proper type serialization instead of hardcoded JSON strings - Validates that the client skips empty data and receives the real response
|
This PR is included in version v1.23.3 |
Sorry, something went wrong.
The filterwarnings on test_sse_client_handles_empty_keepalive_pings was added in PR #1753 with a comment claiming the leak was a test artifact from mocking aconnect_sse. It wasn't — it was the real sse_client bug where read_stream and write_stream_reader were never closed in the finally block. With that bug now fixed, the filter is no longer needed.
| Back | FazBrowse Home | New Git URL |
Motivation and Context
How Has This Been Tested?
Breaking Changes
Types of changes
Checklist
Additional context