forked from M-Labs/artiq
Fix tests.
This commit is contained in:
parent
cbd903a9dc
commit
2124ff9e91
|
@ -8,7 +8,7 @@ from artiq.coredevice.core import Core, CompileError
|
||||||
def main():
|
def main():
|
||||||
with open(sys.argv[1]) as f:
|
with open(sys.argv[1]) as f:
|
||||||
testcase_code = compile(f.read(), f.name, "exec")
|
testcase_code = compile(f.read(), f.name, "exec")
|
||||||
testcase_vars = {}
|
testcase_vars = {'__name__': 'testbench'}
|
||||||
exec(testcase_code, testcase_vars)
|
exec(testcase_code, testcase_vars)
|
||||||
|
|
||||||
ddb_path = os.path.join(os.path.dirname(sys.argv[1]), "ddb.pyon")
|
ddb_path = os.path.join(os.path.dirname(sys.argv[1]), "ddb.pyon")
|
||||||
|
|
|
@ -277,7 +277,7 @@ class ASTTypedRewriter(algorithm.Transformer):
|
||||||
# Its attributes are those of the class environment, but wrapped
|
# Its attributes are those of the class environment, but wrapped
|
||||||
# appropriately so that they are linked to the class from which they
|
# appropriately so that they are linked to the class from which they
|
||||||
# originate.
|
# originate.
|
||||||
instance_type = types.TInstance(node.name)
|
instance_type = types.TInstance(node.name, OrderedDict())
|
||||||
|
|
||||||
# The second type is the type of the constructor itself (in other words,
|
# The second type is the type of the constructor itself (in other words,
|
||||||
# the class object): it is simply a singleton type that has the class
|
# the class object): it is simply a singleton type that has the class
|
||||||
|
|
Loading…
Reference in New Issue