From 25027f690724cb901ae4d1c80534ad389972539a Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 10 Dec 2015 23:16:36 +0800 Subject: [PATCH] compiler: fix tests. --- artiq/compiler/types.py | 2 ++ lit-test/test/inferencer/with.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/artiq/compiler/types.py b/artiq/compiler/types.py index 36667b238..9c34d785f 100644 --- a/artiq/compiler/types.py +++ b/artiq/compiler/types.py @@ -733,6 +733,8 @@ class TypePrinter(object): attrs = ", ".join(["{}: {}".format(attr, self.name(typ.attributes[attr])) for attr in typ.attributes]) return "".format(typ.name, attrs) + elif isinstance(typ, TBuiltin): + return "".format(typ.name) elif isinstance(typ, TValue): return repr(typ.value) elif isinstance(typ, TDelay): diff --git a/lit-test/test/inferencer/with.py b/lit-test/test/inferencer/with.py index b11f3da13..2228b6204 100644 --- a/lit-test/test/inferencer/with.py +++ b/lit-test/test/inferencer/with.py @@ -1,5 +1,5 @@ # RUN: %python -m artiq.compiler.testbench.inferencer %s >%t # RUN: OutputCheck %s --file-to-check=%t -# CHECK-L: as x: +# CHECK-L: as x: with parallel as x: pass