Skip to content

Commit 6bd16e4

Browse files
author
whitequark
committedFeb 25, 2016
Commit missing parts of 919a49b.
1 parent f838b8b commit 6bd16e4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
 

‎artiq/test/lit/inferencer/error_with_arity.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def __exit__(self, n1, n2):
99
pass
1010

1111
def foo():
12-
# CHECK-L: ${LINE:+2}: error: function '__enter__(self:<instance contextmgr {}>, n1:'a)->NoneType delay('b)' must accept 1 positional argument and no optional arguments
12+
# CHECK-L: ${LINE:+2}: error: function '__enter__(self:<instance contextmgr>, n1:'a)->NoneType delay('b)' must accept 1 positional argument and no optional arguments
1313
# CHECK-L: ${LINE:+1}: error: function '__exit__(self:<instance contextmgr>, n1:'c, n2:'d)->NoneType delay('e)' must accept 4 positional arguments and no optional arguments
1414
with contextmgr():
1515
pass

‎artiq/test/lit/inferencer/error_with_exn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ def __exit__(self, n1, n2, n3):
1111

1212
def foo():
1313
# CHECK-L: ${LINE:+2}: error: cannot unify int(width='a) with NoneType
14-
# CHECK-L: ${LINE:+1}: note: exception handling via context managers is not supported; the argument 'n3' of function '__exit__(self:<instance contextmgr {}>, n1:NoneType, n2:NoneType, n3:int(width='a))->NoneType delay('b)' will always be None
14+
# CHECK-L: ${LINE:+1}: note: exception handling via context managers is not supported; the argument 'n3' of function '__exit__(self:<instance contextmgr>, n1:NoneType, n2:NoneType, n3:int(width='a))->NoneType delay('b)' will always be None
1515
with contextmgr():
1616
pass

‎artiq/test/lit/inferencer/error_with_self.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def __exit__(self, n1, n2, n3):
1111
def foo():
1212
contextmgr.__enter__(1)
1313
# CHECK-L: ${LINE:+3}: error: cannot unify <instance contextmgr> with int(width='a) while inferring the type for self argument
14-
# CHECK-L: ${LINE:+2}: note: expression of type <instance contextmgr {}>
14+
# CHECK-L: ${LINE:+2}: note: expression of type <instance contextmgr>
1515
# CHECK-L: ${LINE:+1}: note: reference to an instance with a method '__enter__(self:int(width='a))->NoneType delay('b)'
1616
with contextmgr():
1717
pass

‎artiq/test/lit/iodelay/class.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# RUN: %python -m artiq.compiler.testbench.signature %s >%t
22
# RUN: OutputCheck %s --file-to-check=%t
33

4-
# CHECK-L: g: (i:<instance c {}>)->NoneType delay(1000000 mu)
4+
# CHECK-L: g: (i:<instance c>)->NoneType delay(1000000 mu)
55
def g(i):
66
i.f(1.0)
77

0 commit comments

Comments
 (0)