summaryrefslogtreecommitdiff
path: root/tests/basics
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics')
-rw-r--r--tests/basics/errno1.py4
-rw-r--r--tests/basics/errno1.py.exp2
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/errno1.py b/tests/basics/errno1.py
index d7a5ccd54..d9a895a97 100644
--- a/tests/basics/errno1.py
+++ b/tests/basics/errno1.py
@@ -12,6 +12,10 @@ print(type(uerrno.EIO))
# check that errors are rendered in a nice way
msg = str(OSError(uerrno.EIO))
print(msg[:7], msg[-5:])
+msg = str(OSError(uerrno.EIO, "details"))
+print(msg[:7], msg[-14:])
+msg = str(OSError(uerrno.EIO, "details", "more details"))
+print(msg[:1], msg[-28:])
# 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 7dd22757d..58605b476 100644
--- a/tests/basics/errno1.py.exp
+++ b/tests/basics/errno1.py.exp
@@ -1,4 +1,6 @@
<class 'int'>
[Errno ] EIO
+[Errno ] EIO: details
+( , 'details', 'more details')
9999
uerrno