|
21 | 21 | REFERENCE_SPEC_GIT_PATH = ref_spec_152.git_path
|
22 | 22 | REFERENCE_SPEC_VERSION = ref_spec_152.version
|
23 | 23 |
|
24 |
| - |
25 |
| -@pytest.mark.ported_from( |
| 24 | +pytestmark = pytest.mark.ported_from( |
26 | 25 | [
|
27 | 26 | "https://github.com/ethereum/tests/blob/v13.3/src/GeneralStateTestsFiller/stPreCompiledContracts/blake2BFiller.yml",
|
28 | 27 | "https://github.com/ethereum/tests/blob/v13.3/src/GeneralStateTestsFiller/stPreCompiledContracts2/CALLBlake2fFiller.json",
|
|
33 | 32 | "https://github.com/ethereum/execution-spec-tests/pull/1244",
|
34 | 33 | "https://github.com/ethereum/execution-spec-tests/pull/1067",
|
35 | 34 | ],
|
| 35 | + coverage_missed_reason=( |
| 36 | + "No longer used opcodes, SUB, GT, ISZERO, AND, CODESIZE, JUMP, some PUSH opcodes." |
| 37 | + "Original test calls Blake2b in ConstantinopleFix (activation test), " |
| 38 | + "which results in empty account code being triggered." |
| 39 | + ), |
36 | 40 | )
|
| 41 | + |
| 42 | + |
37 | 43 | @pytest.mark.valid_from("Istanbul")
|
38 | 44 | @pytest.mark.parametrize("call_opcode", [Op.CALL])
|
39 | 45 | @pytest.mark.parametrize(
|
@@ -427,18 +433,6 @@ def test_blake2b(
|
427 | 433 | state_test(env=env, pre=pre, post=post, tx=tx)
|
428 | 434 |
|
429 | 435 |
|
430 |
| -@pytest.mark.ported_from( |
431 |
| - [ |
432 |
| - "https://github.com/ethereum/tests/blob/v13.3/src/GeneralStateTestsFiller/stPreCompiledContracts/blake2BFiller.yml", |
433 |
| - "https://github.com/ethereum/tests/blob/v13.3/src/GeneralStateTestsFiller/stPreCompiledContracts2/CALLBlake2fFiller.json", |
434 |
| - "https://github.com/ethereum/tests/blob/v13.3/src/GeneralStateTestsFiller/stPreCompiledContracts2/CALLCODEBlake2fFiller.json", |
435 |
| - "https://github.com/ethereum/tests/blob/v13.3/src/GeneralStateTestsFiller/stPreCompiledContracts/delegatecall09UndefinedFiller.yml", |
436 |
| - ], |
437 |
| - pr=[ |
438 |
| - "https://github.com/ethereum/execution-spec-tests/pull/1244", |
439 |
| - "https://github.com/ethereum/execution-spec-tests/pull/1067", |
440 |
| - ], |
441 |
| -) |
442 | 436 | @pytest.mark.valid_from("Istanbul")
|
443 | 437 | @pytest.mark.parametrize("call_opcode", [Op.CALL, Op.CALLCODE])
|
444 | 438 | @pytest.mark.parametrize("gas_limit", [90_000, 110_000, 200_000])
|
@@ -552,18 +546,6 @@ def test_blake2b_invalid_gas(
|
552 | 546 | state_test(env=env, pre=pre, post=post, tx=tx)
|
553 | 547 |
|
554 | 548 |
|
555 |
| -@pytest.mark.ported_from( |
556 |
| - [ |
557 |
| - "https://github.com/ethereum/tests/blob/v13.3/src/GeneralStateTestsFiller/stPreCompiledContracts/blake2BFiller.yml", |
558 |
| - "https://github.com/ethereum/tests/blob/v13.3/src/GeneralStateTestsFiller/stPreCompiledContracts2/CALLBlake2fFiller.json", |
559 |
| - "https://github.com/ethereum/tests/blob/v13.3/src/GeneralStateTestsFiller/stPreCompiledContracts2/CALLCODEBlake2fFiller.json", |
560 |
| - "https://github.com/ethereum/tests/blob/v13.3/src/GeneralStateTestsFiller/stPreCompiledContracts/delegatecall09UndefinedFiller.yml", |
561 |
| - ], |
562 |
| - pr=[ |
563 |
| - "https://github.com/ethereum/execution-spec-tests/pull/1244", |
564 |
| - "https://github.com/ethereum/execution-spec-tests/pull/1067", |
565 |
| - ], |
566 |
| -) |
567 | 549 | @pytest.mark.valid_from("Istanbul")
|
568 | 550 | @pytest.mark.parametrize("call_opcode", [Op.CALL, Op.CALLCODE])
|
569 | 551 | @pytest.mark.parametrize("gas_limit", [Environment().gas_limit, 90_000, 110_000, 200_000])
|
@@ -674,18 +656,6 @@ def test_blake2b_gas_limit(
|
674 | 656 | )
|
675 | 657 |
|
676 | 658 |
|
677 |
| -@pytest.mark.ported_from( |
678 |
| - [ |
679 |
| - "https://github.com/ethereum/tests/blob/v13.3/src/GeneralStateTestsFiller/stPreCompiledContracts/blake2BFiller.yml", |
680 |
| - "https://github.com/ethereum/tests/blob/v13.3/src/GeneralStateTestsFiller/stPreCompiledContracts2/CALLBlake2fFiller.json", |
681 |
| - "https://github.com/ethereum/tests/blob/v13.3/src/GeneralStateTestsFiller/stPreCompiledContracts2/CALLCODEBlake2fFiller.json", |
682 |
| - "https://github.com/ethereum/tests/blob/v13.3/src/GeneralStateTestsFiller/stPreCompiledContracts/delegatecall09UndefinedFiller.yml", |
683 |
| - ], |
684 |
| - pr=[ |
685 |
| - "https://github.com/ethereum/execution-spec-tests/pull/1244", |
686 |
| - "https://github.com/ethereum/execution-spec-tests/pull/1067", |
687 |
| - ], |
688 |
| -) |
689 | 659 | @pytest.mark.valid_from("Istanbul")
|
690 | 660 | @pytest.mark.parametrize("call_opcode", [Op.CALL, Op.CALLCODE])
|
691 | 661 | @pytest.mark.parametrize(
|
|
0 commit comments