From 01030505412997aa46030a4c3fe92fd1de7f56f0 Mon Sep 17 00:00:00 2001 From: Sam Wilson Date: Mon, 17 Oct 2022 11:15:16 -0400 Subject: [PATCH] Remove typing ignore annotation --- tests/berlin/test_state_transition.py | 8 ++++---- tests/homestead/test_state_transition.py | 8 ++++---- tests/istanbul/test_state_transition.py | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/berlin/test_state_transition.py b/tests/berlin/test_state_transition.py index 6b903ab8ae..6674a37a1c 100644 --- a/tests/berlin/test_state_transition.py +++ b/tests/berlin/test_state_transition.py @@ -24,7 +24,7 @@ # Every test below takes more than 60s to run and # hence they've been marked as slow -SLOW_TESTS = ( +GENERAL_STATE_SLOW_TESTS = ( "stTimeConsuming/CALLBlake2f_MaxRounds.json", "stTimeConsuming/static_Call50000_sha256.json", "vmPerformance/loopExp.json", @@ -58,7 +58,7 @@ fetch_berlin_tests( test_dir, ignore_list=INCORRECT_UPSTREAM_STATE_TESTS, - slow_list=SLOW_TESTS, + slow_list=GENERAL_STATE_SLOW_TESTS, big_memory_list=BIG_MEMORY_TESTS, ), ids=idfn, @@ -83,7 +83,7 @@ def test_general_state_tests(test_case: Dict) -> None: # Every test below takes more than 60s to run and # hence they've been marked as slow -SLOW_TESTS = ("bcExploitTest/DelegateCallSpam.json",) # type: ignore +VALID_BLOCKS_SLOW_TESTS = ("bcExploitTest/DelegateCallSpam.json",) @pytest.mark.parametrize( @@ -91,7 +91,7 @@ def test_general_state_tests(test_case: Dict) -> None: fetch_berlin_tests( test_dir, ignore_list=IGNORE_LIST, - slow_list=SLOW_TESTS, + slow_list=VALID_BLOCKS_SLOW_TESTS, ), ids=idfn, ) diff --git a/tests/homestead/test_state_transition.py b/tests/homestead/test_state_transition.py index 56271276a1..714bd6e60b 100644 --- a/tests/homestead/test_state_transition.py +++ b/tests/homestead/test_state_transition.py @@ -28,7 +28,7 @@ # Every test below takes more than 60s to run and # hence they've been marked as slow -SLOW_TESTS = ( +GENERAL_STATE_SLOW_TESTS = ( "stRandom/randomStatetest177_d0g0v0.json", "stQuadraticComplexityTest/Call50000_d0g1v0.json", "stQuadraticComplexityTest/Call50000_sha256_d0g1v0.json", @@ -113,7 +113,7 @@ @pytest.mark.parametrize( "test_case", - fetch_homestead_tests(test_dir, slow_list=SLOW_TESTS), + fetch_homestead_tests(test_dir, slow_list=GENERAL_STATE_SLOW_TESTS), ids=idfn, ) def test_general_state_tests(test_case: Dict) -> None: @@ -138,7 +138,7 @@ def test_general_state_tests(test_case: Dict) -> None: # Every test below takes more than 60s to run and # hence they've been marked as slow -SLOW_TESTS = ("bcExploitTest/DelegateCallSpam.json",) # type: ignore +VALID_BLOCKS_SLOW_TESTS = ("bcExploitTest/DelegateCallSpam.json",) BIG_MEMORY_TESTS = ("randomStatetest94_",) @@ -148,7 +148,7 @@ def test_general_state_tests(test_case: Dict) -> None: fetch_homestead_tests( test_dir, ignore_list=IGNORE_LIST, - slow_list=SLOW_TESTS, + slow_list=VALID_BLOCKS_SLOW_TESTS, big_memory_list=BIG_MEMORY_TESTS, ), ids=idfn, diff --git a/tests/istanbul/test_state_transition.py b/tests/istanbul/test_state_transition.py index b5b4ad7403..eb0a81e0d9 100644 --- a/tests/istanbul/test_state_transition.py +++ b/tests/istanbul/test_state_transition.py @@ -24,7 +24,7 @@ # Every test below takes more than 60s to run and # hence they've been marked as slow -SLOW_TESTS = ( +GENERAL_STATE_SLOW_TESTS = ( "stTimeConsuming/CALLBlake2f_MaxRounds.json", "stTimeConsuming/static_Call50000_sha256.json", "vmPerformance/loopExp.json", @@ -58,7 +58,7 @@ fetch_istanbul_tests( test_dir, ignore_list=INCORRECT_UPSTREAM_STATE_TESTS, - slow_list=SLOW_TESTS, + slow_list=GENERAL_STATE_SLOW_TESTS, big_memory_list=BIG_MEMORY_TESTS, ), ids=idfn, @@ -83,7 +83,7 @@ def test_general_state_tests(test_case: Dict) -> None: # Every test below takes more than 60s to run and # hence they've been marked as slow -SLOW_TESTS = ("bcExploitTest/DelegateCallSpam.json",) # type: ignore +VALID_BLOCKS_SLOW_TESTS = ("bcExploitTest/DelegateCallSpam.json",) @pytest.mark.parametrize( @@ -91,7 +91,7 @@ def test_general_state_tests(test_case: Dict) -> None: fetch_istanbul_tests( test_dir, ignore_list=IGNORE_LIST, - slow_list=SLOW_TESTS, + slow_list=VALID_BLOCKS_SLOW_TESTS, ), ids=idfn, )