Commit 56b3f13 1 parent b43a9ec commit 56b3f13 Copy full SHA for 56b3f13
File tree 1 file changed +3
-3
lines changed
web3/_utils/module_testing
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -850,9 +850,9 @@ def test_eth_estimateGas_with_block(
850
850
def test_eth_getBlock_deprecated (
851
851
self , web3 : "Web3" , empty_block : BlockData
852
852
) -> None :
853
- with pytest .warns (DeprecationWarning ):
853
+ with pytest .warns (DeprecationWarning , match = "getBlock is deprecated in favor of get_block" ):
854
854
block = web3 .eth .getBlock (empty_block ['hash' ])
855
- assert block ['hash' ] == empty_block ['hash' ]
855
+ assert block ['hash' ] == empty_block ['hash' ]
856
856
857
857
def test_eth_getBlockByHash (
858
858
self , web3 : "Web3" , empty_block : BlockData
@@ -881,7 +881,7 @@ def test_eth_getBlockByNumber_with_integer(
881
881
def test_eth_getBlockByNumber_with_integer_deprecated (
882
882
self , web3 : "Web3" , empty_block : BlockData
883
883
) -> None :
884
- with pytest .warns (DeprecationWarning , match = "" ):
884
+ with pytest .warns (DeprecationWarning , match = "getBlock is deprecated in favor of get_block " ):
885
885
block = web3 .eth .getBlock (empty_block ['number' ])
886
886
assert block ['number' ] == empty_block ['number' ]
887
887
You can’t perform that action at this time.
0 commit comments