This repository was archived by the owner on May 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 33import json
44import ethereum .blocks as blocks
55import ethereum .testutils as testutils
6+ from ethereum .testutils import fixture_to_bytes
67import ethereum .utils as utils
78from rlp .utils import encode_hex
89from ethereum .tests .utils import new_env
@@ -23,7 +24,7 @@ def genesis_fixture():
2324 # FIXME: assert that link is uptodate
2425 for k in ('genesis_rlp_hex' , 'genesis_state_root' , 'genesis_hash' ):
2526 assert k in genesis_fixture
26- return genesis_fixture
27+ return fixture_to_bytes ( genesis_fixture )
2728
2829
2930@pytest .mark .xfail # code not in sync with genesis fixtures
Original file line number Diff line number Diff line change 33import ethereum .trie as trie
44from ethereum .utils import to_string
55from ethereum .tests .utils import new_db
6+ from ethereum .testutils import fixture_to_bytes
67import ethereum .testutils as testutils
78from ethereum .slogging import get_logger
89logger = get_logger ()
@@ -30,7 +31,7 @@ def run_test(name):
3031
3132 logger .debug ('testing %s' % name )
3233 t = trie .Trie (new_db ())
33- data = load_tests ()[name ]
34+ data = fixture_to_bytes ( load_tests ()[name ])
3435
3536 for k in data ['in' ]:
3637 logger .debug ('updating with (%s, %s)' % (k , k ))
You can’t perform that action at this time.
0 commit comments