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 3
3
import json
4
4
import ethereum .blocks as blocks
5
5
import ethereum .testutils as testutils
6
+ from ethereum .testutils import fixture_to_bytes
6
7
import ethereum .utils as utils
7
8
from rlp .utils import encode_hex
8
9
from ethereum .tests .utils import new_env
@@ -23,7 +24,7 @@ def genesis_fixture():
23
24
# FIXME: assert that link is uptodate
24
25
for k in ('genesis_rlp_hex' , 'genesis_state_root' , 'genesis_hash' ):
25
26
assert k in genesis_fixture
26
- return genesis_fixture
27
+ return fixture_to_bytes ( genesis_fixture )
27
28
28
29
29
30
@pytest .mark .xfail # code not in sync with genesis fixtures
Original file line number Diff line number Diff line change 3
3
import ethereum .trie as trie
4
4
from ethereum .utils import to_string
5
5
from ethereum .tests .utils import new_db
6
+ from ethereum .testutils import fixture_to_bytes
6
7
import ethereum .testutils as testutils
7
8
from ethereum .slogging import get_logger
8
9
logger = get_logger ()
@@ -30,7 +31,7 @@ def run_test(name):
30
31
31
32
logger .debug ('testing %s' % name )
32
33
t = trie .Trie (new_db ())
33
- data = load_tests ()[name ]
34
+ data = fixture_to_bytes ( load_tests ()[name ])
34
35
35
36
for k in data ['in' ]:
36
37
logger .debug ('updating with (%s, %s)' % (k , k ))
You can’t perform that action at this time.
0 commit comments