Skip to content

Commit

Permalink
Fix a bug in tests which pytest ignores in older version
Browse files Browse the repository at this point in the history
  • Loading branch information
aisk committed Feb 25, 2024
1 parent 31a15e2 commit ad0d38e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,8 @@ def test_exception_iwth_ssl():

def test_client_timeout():
with pytest.raises(socket.timeout):
with pytest.warns(UserWarning): # Deprecated
with client(timeout=500) as c:
c.sleep(1000)
with client(timeout=500) as c:
c.sleep(1000)


def test_client_socket_timeout():
Expand Down

0 comments on commit ad0d38e

Please sign in to comment.