diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basics/errno1.py | 3 | ||||
-rw-r--r-- | tests/basics/errno1.py.exp | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/basics/errno1.py b/tests/basics/errno1.py index 680104481b..eae1bbe1b4 100644 --- a/tests/basics/errno1.py +++ b/tests/basics/errno1.py @@ -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))) diff --git a/tests/basics/errno1.py.exp b/tests/basics/errno1.py.exp index e60fdf0490..c3703df4a2 100644 --- a/tests/basics/errno1.py.exp +++ b/tests/basics/errno1.py.exp @@ -1,2 +1,3 @@ <class 'int'> [Errno ] EIO +9999 |