Skip to content

Commit 6937997

Browse files
authored
Fix pytest warning about empty match parameter in pytest.raises (#162)
2 parents 73301db + 2e30293 commit 6937997

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)