Skip to content

Commit

Permalink
Remove typing ignore annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWilsn committed Oct 17, 2022
1 parent 2e7f79e commit 0103050
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions tests/berlin/test_state_transition.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand All @@ -83,15 +83,15 @@ 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(
"test_case",
fetch_berlin_tests(
test_dir,
ignore_list=IGNORE_LIST,
slow_list=SLOW_TESTS,
slow_list=VALID_BLOCKS_SLOW_TESTS,
),
ids=idfn,
)
Expand Down
8 changes: 4 additions & 4 deletions tests/homestead/test_state_transition.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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:
Expand All @@ -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_",)

Expand All @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions tests/istanbul/test_state_transition.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand All @@ -83,15 +83,15 @@ 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(
"test_case",
fetch_istanbul_tests(
test_dir,
ignore_list=IGNORE_LIST,
slow_list=SLOW_TESTS,
slow_list=VALID_BLOCKS_SLOW_TESTS,
),
ids=idfn,
)
Expand Down

0 comments on commit 0103050

Please sign in to comment.