Skip to content

Commit 2124ff9

Browse files
author
whitequark
committedAug 28, 2015
Fix tests.
1 parent cbd903a commit 2124ff9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

Diff for: ‎artiq/compiler/testbench/embedding.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
def main():
99
with open(sys.argv[1]) as f:
1010
testcase_code = compile(f.read(), f.name, "exec")
11-
testcase_vars = {}
11+
testcase_vars = {'__name__': 'testbench'}
1212
exec(testcase_code, testcase_vars)
1313

1414
ddb_path = os.path.join(os.path.dirname(sys.argv[1]), "ddb.pyon")

Diff for: ‎artiq/compiler/transforms/asttyped_rewriter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def visit_ClassDef(self, node):
277277
# Its attributes are those of the class environment, but wrapped
278278
# appropriately so that they are linked to the class from which they
279279
# originate.
280-
instance_type = types.TInstance(node.name)
280+
instance_type = types.TInstance(node.name, OrderedDict())
281281

282282
# The second type is the type of the constructor itself (in other words,
283283
# the class object): it is simply a singleton type that has the class

0 commit comments

Comments
 (0)
Please sign in to comment.