summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/errno1.py5
-rw-r--r--tests/basics/errno1.py.exp3
l---------tests/pyboard.py2
3 files changed, 7 insertions, 3 deletions
diff --git a/tests/basics/errno1.py b/tests/basics/errno1.py
index 63930b767..bbbfac10c 100644
--- a/tests/basics/errno1.py
+++ b/tests/basics/errno1.py
@@ -11,7 +11,10 @@ print(type(uerrno.EIO))
# check that errors are rendered in a nice way
msg = str(OSError(uerrno.EIO))
-print(msg[:7], msg[-5:])
+print(msg[:7], msg[msg.find(']'):])
+
+msg = str(OSError(uerrno.ENOBUFS))
+print(msg[:7], msg[msg.find(']'):])
# 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 c3703df4a..b5dd529e4 100644
--- a/tests/basics/errno1.py.exp
+++ b/tests/basics/errno1.py.exp
@@ -1,3 +1,4 @@
<class 'int'>
-[Errno ] EIO
+[Errno ] Input/output error
+[Errno ] ENOBUFS
9999
diff --git a/tests/pyboard.py b/tests/pyboard.py
index 3a82f6a6a..616773a31 120000
--- a/tests/pyboard.py
+++ b/tests/pyboard.py
@@ -1 +1 @@
-../tools/pyboard.py \ No newline at end of file
+../tools/cpboard.py \ No newline at end of file