aboutsummaryrefslogtreecommitdiff
path: root/tests/io/bytesio_ext2.py.exp
AgeCommit message (Collapse)Author
2018-06-27tests: Move non-filesystem io tests to basics dir with io_ prefix.Damien George
2018-05-01tests/io/bytesio_ext2: Remove dependency on specific EINVAL valueMike Wadsten
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.
2017-08-20py/stream: seek: Consistently handle negative offset for SEEK_SET.Paul Sokolovsky
Per POSIX, this is EINVAL, so raises OSError(EINVAL).