mirror of https://github.com/m-labs/artiq.git
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():
|
||||
return 2
|
||||
|
||||
# CHECK-L: a 1
|
||||
print("a", c.a)
|
||||
# CHECK-L: f() 2
|
||||
print("f()", c.f())
|
||||
assert c.a == 1
|
||||
assert c.f() == 2
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# RUN: %python -m artiq.compiler.testbench.jit %s
|
||||
# RUN: %python %s
|
||||
# RUN: %python -m artiq.compiler.testbench.jit %s >%t.1
|
||||
# RUN: OutputCheck %s --file-to-check=%t.1
|
||||
# RUN: %python %s >%t.2
|
||||
# RUN: OutputCheck %s --file-to-check=%t.2
|
||||
# REQUIRES: exceptions
|
||||
|
||||
def f():
|
||||
|
|
|
@ -6,11 +6,9 @@ class c:
|
|||
|
||||
i = c()
|
||||
|
||||
# CHECK-L: a 1
|
||||
print("a", i.a)
|
||||
assert i.a == 1
|
||||
|
||||
def f():
|
||||
c = None
|
||||
# CHECK-L: shadow a 1
|
||||
print("shadow a", i.a)
|
||||
assert i.a == 1
|
||||
f()
|
||||
|
|
Loading…
Reference in New Issue