|
20 | 20 |
|
21 | 21 | import pytest |
22 | 22 |
|
23 | | -from ethereum_test_forks import Fork, Prague |
| 23 | +from ethereum_test_forks import Fork |
24 | 24 | from ethereum_test_tools import ( |
25 | 25 | EOA, |
26 | 26 | AccessList, |
@@ -290,24 +290,14 @@ def tx_access_list() -> List[AccessList]: |
290 | 290 |
|
291 | 291 |
|
292 | 292 | @pytest.fixture |
293 | | -def tx_error( |
294 | | - request: pytest.FixtureRequest, |
295 | | - fork: Fork, |
296 | | -) -> Optional[TransactionException]: |
| 293 | +def tx_error() -> Optional[TransactionException]: |
297 | 294 | """ |
298 | 295 | Default expected error produced by the block transactions (no error). |
299 | 296 |
|
300 | 297 | Can be overloaded on test cases where the transactions are expected |
301 | 298 | to fail. |
302 | 299 | """ |
303 | | - if not hasattr(request, "param"): |
304 | | - return None |
305 | | - if fork >= Prague and request.param in [ |
306 | | - TransactionException.TYPE_3_TX_BLOB_COUNT_EXCEEDED, |
307 | | - TransactionException.TYPE_3_TX_MAX_BLOB_GAS_ALLOWANCE_EXCEEDED, |
308 | | - ]: |
309 | | - return None |
310 | | - return request.param |
| 300 | + return None |
311 | 301 |
|
312 | 302 |
|
313 | 303 | @pytest.fixture |
@@ -746,10 +736,7 @@ def test_invalid_normal_gas( |
746 | 736 | invalid_blob_combinations(), |
747 | 737 | ) |
748 | 738 | @pytest.mark.parametrize( |
749 | | - "tx_error", |
750 | | - [TransactionException.TYPE_3_TX_MAX_BLOB_GAS_ALLOWANCE_EXCEEDED], |
751 | | - ids=[""], |
752 | | - indirect=True, |
| 739 | + "tx_error", [TransactionException.TYPE_3_TX_MAX_BLOB_GAS_ALLOWANCE_EXCEEDED], ids=[""] |
753 | 740 | ) |
754 | 741 | @pytest.mark.valid_from("Cancun") |
755 | 742 | def test_invalid_block_blob_count( |
@@ -1020,7 +1007,6 @@ def test_insufficient_balance_blob_tx_combinations( |
1020 | 1007 | ), |
1021 | 1008 | ], |
1022 | 1009 | ids=["too_few_blobs", "too_many_blobs"], |
1023 | | - indirect=["tx_error"], |
1024 | 1010 | ) |
1025 | 1011 | @pytest.mark.valid_from("Cancun") |
1026 | 1012 | def test_invalid_tx_blob_count( |
|
0 commit comments