mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
Update test_always_seq.py
Fixed bugs
This commit is contained in:
parent
01da49766e
commit
6fe06849a4
@ -28,7 +28,7 @@ def test_clock():
|
||||
def logic2():
|
||||
pass
|
||||
except:
|
||||
pytest.fail()
|
||||
assert False
|
||||
|
||||
def test_reset():
|
||||
""" check the reset parameter """
|
||||
@ -37,7 +37,7 @@ def test_reset():
|
||||
clock = Signal(bool(0))
|
||||
reset = Signal(bool(0))
|
||||
|
||||
with raises(AlwaysSeqError):
|
||||
with raises(AlwaysSeqError) as e:
|
||||
@always_seq(clock.posedge, reset=reset)
|
||||
def logic():
|
||||
pass
|
||||
@ -50,5 +50,5 @@ def test_reset():
|
||||
def logic2():
|
||||
pass
|
||||
except:
|
||||
pytest.fail()
|
||||
assert False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user