aboutsummaryrefslogtreecommitdiff
path: root/tests/io/bytesio_ext2.py.exp
diff options
context:
space:
mode:
authorMike Wadsten2018-04-30 20:59:23 -0500
committerDamien George2018-05-01 15:48:43 +1000
commit9f1eafc38092213bf59cd5dfdd803249077729c3 (patch)
tree83b3e5359bd26aa71c805e675fcaf84151f6f2d9 /tests/io/bytesio_ext2.py.exp
parent28c9824c51a877deea97f87e0ce01561d0d93595 (diff)
tests/io/bytesio_ext2: Remove dependency on specific EINVAL value
If MICROPY_USE_INTERNAL_ERRNO is disabled, MP_EINVAL is not guaranteed to have the value 22, so we cannot depend on OSError(22,). Instead, to support any given port's errno values, without relying on uerrno, we just check that the args[0] is positive.
Diffstat (limited to 'tests/io/bytesio_ext2.py.exp')
-rw-r--r--tests/io/bytesio_ext2.py.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/io/bytesio_ext2.py.exp b/tests/io/bytesio_ext2.py.exp
index b52e4978a..724aaf63a 100644
--- a/tests/io/bytesio_ext2.py.exp
+++ b/tests/io/bytesio_ext2.py.exp
@@ -1 +1 @@
-OSError(22,)
+<class 'OSError'> True