1
0
mirror of https://github.com/myhdl/myhdl.git synced 2025-01-24 21:52:56 +08:00

checkArgs bug

This commit is contained in:
jand 2003-11-16 15:20:27 +00:00
parent 9720743a21
commit dd8968df9a
3 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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()

View File

@ -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