Commit 2b7c4a18 authored by Damien George's avatar Damien George
Browse files

tests/basics: Add errno1 test, to check basics of uerrno module.

parent 67a48136
# test errno's and uerrno module
try:
import uerrno
except ImportError:
print("SKIP")
import sys
sys.exit()
# check that constants exist and are integers
print(type(uerrno.EIO))
# check that errors are rendered in a nice way
msg = str(OSError(uerrno.EIO))
print(msg[:7], msg[-5:])
<class 'int'>
[Errno ] EIO
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment