diff --git a/src/pyscriptc/stdmore.py b/src/pyscriptc/stdmore.py index 694d6c94..cf1bc63f 100644 --- a/src/pyscriptc/stdmore.py +++ b/src/pyscriptc/stdmore.py @@ -1570,7 +1570,7 @@ def _host_attr(owner: Any, name: str) -> Any: "is_normalized": _sig([_S, _S], _B, "ps_unicode_is_normalized"), "bidirectional": _sig([_S], _S, "ps_unicode_bidirectional"), "east_asian_width": _sig([_S], _S, "ps_unicode_east_asian_width"), - "mirrored": _sig([_S], _B, "ps_unicode_mirrored"), + "mirrored": _sig([_S], _I, "ps_unicode_mirrored"), "decimal": _sig([_S], _I, "ps_unicode_decimal"), "digit": _sig([_S], _I, "ps_unicode_digit"), "numeric": _sig([_S], _F, "ps_unicode_numeric"), diff --git a/tests/test_stdlib_call_table.py b/tests/test_stdlib_call_table.py index b829c024..72d1fb26 100644 --- a/tests/test_stdlib_call_table.py +++ b/tests/test_stdlib_call_table.py @@ -36,7 +36,6 @@ # a real difference from CPython 3.14 tracked as an issue; the entry is what # makes the batch an xfail instead of a failure, and it must be removed when # the row is fixed (the batch then passes on its own). -MIRRORED_DIVERGENCE = "issue #712 (unicodedata.mirrored return kind)" PLATFORM_DIVERGENCE = "issue #713 (platform.platform output)" REALPATH_DIVERGENCE = "issue #714 (os.path.realpath on a missing target)" @@ -372,7 +371,7 @@ def _p(module: str, member: str, group: str, *lines: str, divergence: str | None _p("unicodedata", "is_normalized", "text", "print(unicodedata.is_normalized('NFC', 'caf\\u00e9'))"), _p("unicodedata", "bidirectional", "text", "print(unicodedata.bidirectional('a'))"), _p("unicodedata", "east_asian_width", "text", "print(unicodedata.east_asian_width('a'))"), - _p("unicodedata", "mirrored", "text", "print(unicodedata.mirrored('('))", divergence=MIRRORED_DIVERGENCE), + _p("unicodedata", "mirrored", "text", "print(unicodedata.mirrored('('))"), _p("unicodedata", "decimal", "text", "print(unicodedata.decimal('7'))"), _p("unicodedata", "digit", "text", "print(unicodedata.digit('7'))"), _p("unicodedata", "numeric", "text", "print(unicodedata.numeric('7'))"),