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

Commit fbd2085

Browse files
committed
fix: pypy branch hack
1 parent b56c0f3 commit fbd2085

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ethereum/tests/profile_vm.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,12 @@ def run(profiler=None):
4646
print s.getvalue()
4747
else:
4848
# pypy version
49-
from ethereum.utils import sha3_call_counter
5049
st = time.time()
5150
run()
5251
print
5352
print 'took total', time.time() - st
54-
print 'took w/o sha3', time.time() - st - sha3_call_counter[3]
53+
try: # pypy branch
54+
from ethereum.utils import sha3_call_counter
55+
print 'took w/o sha3', time.time() - st - sha3_call_counter[3]
56+
except ImportError:
57+
pass

0 commit comments

Comments
 (0)