Skip to content

Commit 2e30293

Browse files
Copilotllucax
andcommitted
Fix pytest warning by removing empty match parameter from pytest.raises
Co-authored-by: llucax <1031485+llucax@users.noreply.github.com>
1 parent 3ab3420 commit 2e30293

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

tests/test_client.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,7 @@ def _assert_is_disconnected(client: BaseApiClient[StubT]) -> None:
2828
"""Assert that the client is disconnected."""
2929
assert not client.is_connected
3030

31-
with pytest.raises(ClientNotConnected, match=r"") as exc_info:
32-
_ = client.channel
33-
exc = exc_info.value
34-
assert exc.server_url == _DEFAULT_SERVER_URL
35-
assert exc.operation == "channel"
36-
37-
with pytest.raises(ClientNotConnected, match=r"") as exc_info:
31+
with pytest.raises(ClientNotConnected) as exc_info:
3832
_ = client.channel
3933
exc = exc_info.value
4034
assert exc.server_url == _DEFAULT_SERVER_URL

0 commit comments

Comments
 (0)