Skip to content
This repository was archived by the owner on Jan 13, 2026. It is now read-only.

Commit 32bd4c4

Browse files
committed
Add test case for input normalization
1 parent e14b7aa commit 32bd4c4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

rewrite/tests/python/all/import_test.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import pytest
2+
13
from rewrite.test import rewrite_run, python
24

35

@@ -13,6 +15,13 @@ def test_simple_with_alias():
1315
rewrite_run(python("import io as io"))
1416

1517

18+
# noinspection PyUnresolvedReferences
19+
@pytest.mark.xfail(reason="The parser performs Unicode normalization which can't be disabled", strict=True)
20+
def test_unicode_char_normalization():
21+
# language=python
22+
rewrite_run(python("from .main import MaµToMan"))
23+
24+
1625
# noinspection PyUnresolvedReferences
1726
def test_qualified():
1827
# language=python

0 commit comments

Comments
 (0)