Skip to content

Commit

Permalink
Fix toplevel test
Browse files Browse the repository at this point in the history
  • Loading branch information
jandecaluwe committed Apr 20, 2016
1 parent f52c331 commit b2c93b0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion myhdl/test/conversion/general/test_toplevel_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,9 @@ def test_hdlobjnotself():
x = Signal(intbv(0, min=0, max=16))
y = Signal(intbv(0, min=0, max=16))
hdlobj_inst = HdlObjNotSelf()
hdlobj_inst.method_func(clk, x, srst, y).analyze_convert()
try:
hdlobj_inst.method_func(clk, x, srst, y).analyze_convert()
except ConversionError as e:
assert e.kind == _error.NotSupported
else:
assert False

0 comments on commit b2c93b0

Please sign in to comment.