Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tests.
Browse files Browse the repository at this point in the history
whitequark committed Feb 27, 2016
1 parent e421b22 commit 838236f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artiq/test/lit/inferencer/error_with_self.py
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ def __exit__(self, n1, n2, n3):

def foo():
contextmgr.__enter__(1)
# CHECK-L: ${LINE:+3}: error: cannot unify <instance contextmgr> with int(width='a) while inferring the type for self argument
# CHECK-L: ${LINE:+3}: error: cannot unify <instance contextmgr {}> with int(width='a) while inferring the type for self argument
# CHECK-L: ${LINE:+2}: note: expression of type <instance contextmgr {}>
# CHECK-L: ${LINE:+1}: note: reference to an instance with a method '__enter__(self:int(width='a))->NoneType delay('b)'
with contextmgr():

0 comments on commit 838236f

Please sign in to comment.