mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
tests/basics: Add test for printing OSError when errno is unknown.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user