You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07: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