summaryrefslogtreecommitdiff
path: root/tests/basics
diff options
context:
space:
mode:
authorMatt Wozniski <mwozniski@bloomberg.net>2018-05-14 22:55:21 -0400
committerMatt Wozniski <mwozniski@bloomberg.net>2018-05-14 23:16:18 -0400
commit086bffb5940eb0450b4213934c6c1ed12d124e7c (patch)
tree983c1fef52d080a9ec240902b5204b6dc76a16c9 /tests/basics
parent5833cbe6dec64a980054ed0b408033cff9d2f22e (diff)
Update errno tests to match new expected behavior
Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
Diffstat (limited to 'tests/basics')
-rw-r--r--tests/basics/errno1.py5
-rw-r--r--tests/basics/errno1.py.exp3
2 files changed, 6 insertions, 2 deletions
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 @@
<class 'int'>
-[Errno ] EIO
+[Errno ] Input/output error
+[Errno ] ENOBUFS
9999