summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/cpydiff/modules_errno_enotsup.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/cpydiff/modules_errno_enotsup.py b/tests/cpydiff/modules_errno_enotsup.py
new file mode 100644
index 000000000..80e5ad9d0
--- /dev/null
+++ b/tests/cpydiff/modules_errno_enotsup.py
@@ -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}")