Fix linter warnings

This commit is contained in:
Justin Traglia 2022-05-09 14:28:54 -05:00
parent a7bda480fe
commit 9dcb2eecbc
1 changed files with 8 additions and 4 deletions

View File

@ -215,7 +215,8 @@ def test_almost_empty_attestations_with_leak(spec, state):
@spec_state_test
def test_random_fill_attestations(spec, state):
rng = Random(4567)
yield from run_with_participation(spec, state, lambda slot, comm_index, comm: rng.sample(sorted(comm), len(comm) // 3))
yield from run_with_participation(spec, state,
lambda slot, comm_index, comm: rng.sample(sorted(comm), len(comm) // 3))
@with_all_phases
@ -223,14 +224,16 @@ def test_random_fill_attestations(spec, state):
@leaking()
def test_random_fill_attestations_with_leak(spec, state):
rng = Random(4567)
yield from run_with_participation(spec, state, lambda slot, comm_index, comm: rng.sample(sorted(comm), len(comm) // 3))
yield from run_with_participation(spec, state,
lambda slot, comm_index, comm: rng.sample(sorted(comm), len(comm) // 3))
@with_all_phases
@spec_state_test
def test_almost_full_attestations(spec, state):
rng = Random(8901)
yield from run_with_participation(spec, state, lambda slot, comm_index, comm: rng.sample(sorted(comm), len(comm) - 1))
yield from run_with_participation(spec, state,
lambda slot, comm_index, comm: rng.sample(sorted(comm), len(comm) - 1))
@with_all_phases
@ -238,7 +241,8 @@ def test_almost_full_attestations(spec, state):
@leaking()
def test_almost_full_attestations_with_leak(spec, state):
rng = Random(8901)
yield from run_with_participation(spec, state, lambda slot, comm_index, comm: rng.sample(sorted(comm), len(comm) - 1))
yield from run_with_participation(spec, state,
lambda slot, comm_index, comm: rng.sample(sorted(comm), len(comm) - 1))
@with_all_phases