Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 5116550

Browse files
committed
test check_vm_test / fails
1 parent b7a551c commit 5116550

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ethereum/tests/test_vm_failing.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,17 @@ def mk_test_func(filename, testname, testdata):
4343
if testname not in failing:
4444
continue
4545
globals()[func_name] = mk_test_func(filename, testname, testdata)
46+
47+
48+
def test_testutils_check_vm_test():
49+
testutils.check_vm_test(testutils.fixture_to_bytes(testdata))
50+
# manipulate post data
51+
storage = testdata['post'].values()[0]['storage']
52+
assert storage['0x00'][-1] != 'a'
53+
storage['0x00'] = storage['0x00'][:-1] + 'a'
54+
failed_as_expected = False
55+
try:
56+
testutils.check_vm_test(testutils.fixture_to_bytes(testdata))
57+
except Exception:
58+
failed_as_expected = True
59+
assert failed_as_expected

0 commit comments

Comments
 (0)