Skip to content

Commit

Permalink
test: fix finalization test warn
Browse files Browse the repository at this point in the history
  • Loading branch information
darwintree committed Nov 4, 2024
1 parent 01b1b39 commit 31345be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/middleware/test_pending.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 31345be

Please sign in to comment.