mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
tests/cpydiff: Document ENOTSUP vs EOPNOTSUPP.
Signed-off-by: Anson Mansfield <amansfield@mantaro.com>
This commit is contained in:
committed by
Damien George
parent
8e6cd4b58e
commit
52d25928d5
10
tests/cpydiff/modules_errno_enotsup.py
Normal file
10
tests/cpydiff/modules_errno_enotsup.py
Normal file
@@ -0,0 +1,10 @@
|
||||
"""
|
||||
categories: Modules,errno
|
||||
description: MicroPython does not include ``ENOTSUP`` as a name for errno 95.
|
||||
cause: MicroPython does not implement the ``ENOTSUP`` canonical alias for ``EOPNOTSUPP`` added in CPython 3.2.
|
||||
workaround: Use ``errno.EOPNOTSUPP`` in place of ``errno.ENOTSUP``.
|
||||
"""
|
||||
|
||||
import errno
|
||||
|
||||
print(f"{errno.errorcode[errno.EOPNOTSUPP]=!s}")
|
||||
Reference in New Issue
Block a user