Add error message match for OSError in test

test(cli): pin the message the handle-release test expects
This commit is contained in:
Yoggy 2026-08-24 10:35:27 +09:00 committed by GitHub
parent 538ec9922b
commit fe24bcb83e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -253,7 +253,7 @@ class TestWindowsPidExists:
last_error=Mock(return_value=0),
)
with pytest.raises(OSError):
with pytest.raises(OSError, match="Invalid argument"):
_windows_pid_exists(4321, api)
close_handle.assert_called_once_with(99)