1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00

test_cosim: don't import helpers while running directly

This commit is contained in:
Keerthan Jaic 2015-07-28 07:46:50 -04:00
parent a0256decaf
commit 1f62e0200c

View File

@ -28,7 +28,9 @@ import sys
from myhdl import Signal from myhdl import Signal
from myhdl._compat import to_bytes from myhdl._compat import to_bytes
from myhdl._Cosimulation import Cosimulation, CosimulationError, _error from myhdl._Cosimulation import Cosimulation, CosimulationError, _error
from helpers import raises_kind
if __name__ != '__main__':
from helpers import raises_kind
random.seed(1) # random, but deterministic random.seed(1) # random, but deterministic