From ad0d38ebc828888ed4f880453365b8b28375702e Mon Sep 17 00:00:00 2001 From: AN Long Date: Sun, 25 Feb 2024 18:40:44 +0800 Subject: [PATCH] Fix a bug in tests which pytest ignores in older version --- tests/test_rpc.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_rpc.py b/tests/test_rpc.py index c8f645f3..ba20828b 100644 --- a/tests/test_rpc.py +++ b/tests/test_rpc.py @@ -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():