summaryrefslogtreecommitdiff
path: root/tests/cpydiff/modules_errno_enotsup.py
blob: 80e5ad9d0322000a6a67134c49208c703ae6ce3d (plain)
1
2
3
4
5
6
7
8
9
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}")