From 086bffb5940eb0450b4213934c6c1ed12d124e7c Mon Sep 17 00:00:00 2001 From: Matt Wozniski Date: Mon, 14 May 2018 22:55:21 -0400 Subject: Update errno tests to match new expected behavior Signed-off-by: Matt Wozniski --- tests/basics/errno1.py | 5 ++++- tests/basics/errno1.py.exp | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'tests/basics') diff --git a/tests/basics/errno1.py b/tests/basics/errno1.py index 63930b767..bbbfac10c 100644 --- a/tests/basics/errno1.py +++ b/tests/basics/errno1.py @@ -11,7 +11,10 @@ print(type(uerrno.EIO)) # check that errors are rendered in a nice way msg = str(OSError(uerrno.EIO)) -print(msg[:7], msg[-5:]) +print(msg[:7], msg[msg.find(']'):]) + +msg = str(OSError(uerrno.ENOBUFS)) +print(msg[:7], msg[msg.find(']'):]) # check that unknown errno is still rendered print(str(OSError(9999))) diff --git a/tests/basics/errno1.py.exp b/tests/basics/errno1.py.exp index c3703df4a..b5dd529e4 100644 --- a/tests/basics/errno1.py.exp +++ b/tests/basics/errno1.py.exp @@ -1,3 +1,4 @@ -[Errno ] EIO +[Errno ] Input/output error +[Errno ] ENOBUFS 9999 -- cgit v1.2.3