From 31345be8f0891230d26b2cc5cad69c0df8325d45 Mon Sep 17 00:00:00 2001 From: darwintree <17946284+darwintree@users.noreply.github.com> Date: Mon, 4 Nov 2024 16:06:04 +0800 Subject: [PATCH] test: fix finalization test warn --- tests/middleware/test_pending.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/middleware/test_pending.py b/tests/middleware/test_pending.py index 5daddf4..583cda8 100644 --- a/tests/middleware/test_pending.py +++ b/tests/middleware/test_pending.py @@ -34,5 +34,5 @@ def test_pending(w3: "Web3", account: LocalAccount, use_testnet: bool): pending.executed() pending.confirmed() if use_testnet and os.environ.get("TEST_FINALIZATION", None): - with pytest.raises(UserWarning): + with pytest.warns(UserWarning): pending.finalized()