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

Commit 73c0864

Browse files
committed
test check_vm_test / fails
1 parent b7a551c commit 73c0864

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+
# minpulate post data
51+
storage = testdata['post'].values()[0]['storage']
52+
v = storage['0x00']
53+
storage['0x00'] = hex(eval(v) + 1)[:-1]
54+
failed_as_expeceted = False
55+
try:
56+
testutils.check_vm_test(testutils.fixture_to_bytes(testdata))
57+
except Exception:
58+
failed_as_expeceted = True
59+
assert failed_as_expeceted

0 commit comments

Comments
 (0)