From 6bd16e448e167d75a1e5e0432dc6619544ff5c8a Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 25 Feb 2016 20:02:28 +0000 Subject: [PATCH] Commit missing parts of 919a49b6. --- artiq/test/lit/inferencer/error_with_arity.py | 2 +- artiq/test/lit/inferencer/error_with_exn.py | 2 +- artiq/test/lit/inferencer/error_with_self.py | 2 +- artiq/test/lit/iodelay/class.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/artiq/test/lit/inferencer/error_with_arity.py b/artiq/test/lit/inferencer/error_with_arity.py index b056073ae..c91a3996b 100644 --- a/artiq/test/lit/inferencer/error_with_arity.py +++ b/artiq/test/lit/inferencer/error_with_arity.py @@ -9,7 +9,7 @@ class contextmgr: pass def foo(): - # CHECK-L: ${LINE:+2}: error: function '__enter__(self:, n1:'a)->NoneType delay('b)' must accept 1 positional argument and no optional arguments + # CHECK-L: ${LINE:+2}: error: function '__enter__(self:, n1:'a)->NoneType delay('b)' must accept 1 positional argument and no optional arguments # CHECK-L: ${LINE:+1}: error: function '__exit__(self:, n1:'c, n2:'d)->NoneType delay('e)' must accept 4 positional arguments and no optional arguments with contextmgr(): pass diff --git a/artiq/test/lit/inferencer/error_with_exn.py b/artiq/test/lit/inferencer/error_with_exn.py index 5aa8ed1ec..27d6b1b54 100644 --- a/artiq/test/lit/inferencer/error_with_exn.py +++ b/artiq/test/lit/inferencer/error_with_exn.py @@ -11,6 +11,6 @@ class contextmgr: def foo(): # CHECK-L: ${LINE:+2}: error: cannot unify int(width='a) with NoneType - # CHECK-L: ${LINE:+1}: note: exception handling via context managers is not supported; the argument 'n3' of function '__exit__(self:, n1:NoneType, n2:NoneType, n3:int(width='a))->NoneType delay('b)' will always be None + # CHECK-L: ${LINE:+1}: note: exception handling via context managers is not supported; the argument 'n3' of function '__exit__(self:, n1:NoneType, n2:NoneType, n3:int(width='a))->NoneType delay('b)' will always be None with contextmgr(): pass diff --git a/artiq/test/lit/inferencer/error_with_self.py b/artiq/test/lit/inferencer/error_with_self.py index afe53e531..1bf087c26 100644 --- a/artiq/test/lit/inferencer/error_with_self.py +++ b/artiq/test/lit/inferencer/error_with_self.py @@ -11,7 +11,7 @@ class contextmgr: def foo(): contextmgr.__enter__(1) # CHECK-L: ${LINE:+3}: error: cannot unify with int(width='a) while inferring the type for self argument - # CHECK-L: ${LINE:+2}: note: expression of type + # CHECK-L: ${LINE:+2}: note: expression of type # CHECK-L: ${LINE:+1}: note: reference to an instance with a method '__enter__(self:int(width='a))->NoneType delay('b)' with contextmgr(): pass diff --git a/artiq/test/lit/iodelay/class.py b/artiq/test/lit/iodelay/class.py index 6bcb9339b..63fab1862 100644 --- a/artiq/test/lit/iodelay/class.py +++ b/artiq/test/lit/iodelay/class.py @@ -1,7 +1,7 @@ # RUN: %python -m artiq.compiler.testbench.signature %s >%t # RUN: OutputCheck %s --file-to-check=%t -# CHECK-L: g: (i:)->NoneType delay(1000000 mu) +# CHECK-L: g: (i:)->NoneType delay(1000000 mu) def g(i): i.f(1.0)