Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
whitequark committed Aug 28, 2015

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent cbd903a commit 2124ff9
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion artiq/compiler/testbench/embedding.py
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@
def main():
with open(sys.argv[1]) as f:
testcase_code = compile(f.read(), f.name, "exec")
testcase_vars = {}
testcase_vars = {'__name__': 'testbench'}
exec(testcase_code, testcase_vars)

ddb_path = os.path.join(os.path.dirname(sys.argv[1]), "ddb.pyon")
2 changes: 1 addition & 1 deletion artiq/compiler/transforms/asttyped_rewriter.py
Original file line number Diff line number Diff line change
@@ -277,7 +277,7 @@ def visit_ClassDef(self, node):
# Its attributes are those of the class environment, but wrapped
# appropriately so that they are linked to the class from which they
# 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 class object): it is simply a singleton type that has the class

0 comments on commit 2124ff9

Please sign in to comment.