Change copy style, and remove deepcopy import

Update test_libs/pyspec/eth2spec/test/phase_0/block_processing/test_process_attestation.py

Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
This commit is contained in:
dankrad 2019-06-28 20:52:16 +01:00 committed by protolambda
parent 4dcb47e393
commit be04eb2673
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
1 changed files with 1 additions and 3 deletions

View File

@ -1,5 +1,3 @@
from copy import deepcopy
from eth2spec.test.context import spec_state_test, expect_assertion_error, always_bls, with_all_phases, with_phases from eth2spec.test.context import spec_state_test, expect_assertion_error, always_bls, with_all_phases, with_phases
from eth2spec.test.helpers.attestations import ( from eth2spec.test.helpers.attestations import (
get_valid_attestation, get_valid_attestation,
@ -295,7 +293,7 @@ def test_non_empty_custody_bits(spec, state):
attestation = get_valid_attestation(spec, state) attestation = get_valid_attestation(spec, state)
state.slot += spec.MIN_ATTESTATION_INCLUSION_DELAY state.slot += spec.MIN_ATTESTATION_INCLUSION_DELAY
attestation.custody_bits = deepcopy(attestation.aggregation_bits) attestation.custody_bits = attestation.aggregation_bits[:]
sign_attestation(spec, state, attestation) sign_attestation(spec, state, attestation)