mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
checkArgs bug
This commit is contained in:
parent
9720743a21
commit
dd8968df9a
@ -211,6 +211,7 @@ def _checkArgs(arglist):
|
||||
if cosim is not None:
|
||||
raise MultipleCosimError
|
||||
cosim = arg
|
||||
waiters.append(_Waiter(cosim._waiter()))
|
||||
else:
|
||||
raise ArgTypeError(str(type(arg)))
|
||||
return waiters, cosim
|
||||
|
@ -3,14 +3,14 @@ path = os.path
|
||||
import unittest
|
||||
|
||||
from myhdl import *
|
||||
from myhdl._toVerilog import Error, _error
|
||||
from myhdl._toVerilog import ToVerilogError, _error
|
||||
|
||||
class TestNotSupported(unittest.TestCase):
|
||||
|
||||
def check(self, *args):
|
||||
try:
|
||||
i = toVerilog(*args)
|
||||
except Error, e:
|
||||
except ToVerilogError, e:
|
||||
self.assertEqual(e.kind, _error.NotSupported)
|
||||
except:
|
||||
self.fail()
|
||||
|
@ -47,7 +47,7 @@ class TestBin2Gray(TestCase):
|
||||
yield delay(10)
|
||||
#print "B: " + bin(B, width) + "| G_v: " + bin(G_v, width)
|
||||
#print bin(G, width)
|
||||
print bin(G_v, width)
|
||||
#print bin(G_v, width)
|
||||
self.assertEqual(G, G_v)
|
||||
|
||||
return bin2gray_v_inst, stimulus(), bin2gray_inst
|
||||
|
Loading…
x
Reference in New Issue
Block a user