forked from M-Labs/artiq
lit-test: fix tests incorrectly assuming an OutputCheck step.
This commit is contained in:
parent
94a2d5f5fa
commit
1040a409c3
|
@ -6,7 +6,5 @@ class c:
|
||||||
def f():
|
def f():
|
||||||
return 2
|
return 2
|
||||||
|
|
||||||
# CHECK-L: a 1
|
assert c.a == 1
|
||||||
print("a", c.a)
|
assert c.f() == 2
|
||||||
# CHECK-L: f() 2
|
|
||||||
print("f()", c.f())
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
# RUN: %python -m artiq.compiler.testbench.jit %s
|
# RUN: %python -m artiq.compiler.testbench.jit %s >%t.1
|
||||||
# RUN: %python %s
|
# RUN: OutputCheck %s --file-to-check=%t.1
|
||||||
|
# RUN: %python %s >%t.2
|
||||||
|
# RUN: OutputCheck %s --file-to-check=%t.2
|
||||||
# REQUIRES: exceptions
|
# REQUIRES: exceptions
|
||||||
|
|
||||||
def f():
|
def f():
|
||||||
|
|
|
@ -6,11 +6,9 @@ class c:
|
||||||
|
|
||||||
i = c()
|
i = c()
|
||||||
|
|
||||||
# CHECK-L: a 1
|
assert i.a == 1
|
||||||
print("a", i.a)
|
|
||||||
|
|
||||||
def f():
|
def f():
|
||||||
c = None
|
c = None
|
||||||
# CHECK-L: shadow a 1
|
assert i.a == 1
|
||||||
print("shadow a", i.a)
|
|
||||||
f()
|
f()
|
||||||
|
|
Loading…
Reference in New Issue