tests/basics: Add test for printing OSError when errno is unknown.
This commit is contained in:
parent
b04d4a5b13
commit
9f72a14920
@ -13,3 +13,6 @@ print(type(uerrno.EIO))
|
||||
# check that errors are rendered in a nice way
|
||||
msg = str(OSError(uerrno.EIO))
|
||||
print(msg[:7], msg[-5:])
|
||||
|
||||
# check that unknown errno is still rendered
|
||||
print(str(OSError(9999)))
|
||||
|
@ -1,2 +1,3 @@
|
||||
<class 'int'>
|
||||
[Errno ] EIO
|
||||
9999
|
||||
|
Loading…
x
Reference in New Issue
Block a user