Skip to content

Commit e64f981

Browse files
Skip test_listen_server_error if sockets are not supported
Like the other logging.config.listen() tests. It failed on WASI and Emscripten, which cannot start a thread. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 92fc5a5 commit e64f981

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_logging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3765,6 +3765,7 @@ def verify_reverse(stuff):
37653765
('ERROR', '2'),
37663766
], pat=r"^[\w.]+ -> (\w+): (\d+)$")
37673767

3768+
@support.requires_working_socket()
37683769
def test_listen_server_error(self):
37693770
# The "ready" event should be set even if the server fails to start.
37703771
t = logging.config.listen(-1)

0 commit comments

Comments
 (0)