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:
parent
a0256decaf
commit
1f62e0200c
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user