Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Update Lib/test/test_asyncio/test_selector_events.py
  • Loading branch information
kumaraditya303 authored Jan 3, 2025
commit 94afe3efa3f57af4e4b76293b86d8e33f4fd083f
2 changes: 1 addition & 1 deletion Lib/test/test_asyncio/test_selector_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def mock_sock_accept():
# mock accept(2) returning -ECONNABORTED every-other
# time that it's called. This applies most to OpenBSD
# whose sockets generate this errno more reproducibly than
# Linux and other OSs.
# Linux and other OS.
if sock.accept.call_count % 2 == 0:
raise ConnectionAbortedError
return (mock.Mock(), mock.Mock())
Expand Down