8000 Update errno tests to match new expected behavior · adafruit/circuitpython@086bffb · GitHub
[go: up one dir, main page]

Skip to content

Commit 086bffb

Browse files
committed
Update errno tests to match new expected behavior
Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
1 parent 5833cbe commit 086bffb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/basics/errno1.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111

1212
# check that errors are rendered in a nice way
1313
msg = str(OSError(uerrno.EIO))
14-
print(msg[:7], msg[-5:])
14+
print(msg[:7], msg[msg.find(']'):])
15+
16+
msg = str(OSError(uerrno.ENOBUFS))
17+
print(msg[:7], msg[msg.find(']'):])
1518

1619
# check that unknown errno is still rendered
1720
print(str(OSError(9999)))

tests/basics/errno1.py.exp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
<class 'int'>
2-
[Errno ] EIO
2+
[Errno ] Input/output error
3+
[Errno ] ENOBUFS
34
9999

0 commit comments

Comments
 (0)
0