We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5833cbe commit 086bffbCopy full SHA for 086bffb
tests/basics/errno1.py
@@ -11,7 +11,10 @@
11
12
# check that errors are rendered in a nice way
13
msg = str(OSError(uerrno.EIO))
14
-print(msg[:7], msg[-5:])
+print(msg[:7], msg[msg.find(']'):])
15
+
16
+msg = str(OSError(uerrno.ENOBUFS))
17
18
19
# check that unknown errno is still rendered
20
print(str(OSError(9999)))
tests/basics/errno1.py.exp
@@ -1,3 +1,4 @@
1
<class 'int'>
2
-[Errno ] EIO
+[Errno ] Input/output error
3
+[Errno ] ENOBUFS
4
9999
0 commit comments