Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[3.13] gh-156713: Fix test_nturl2path for non-UTF-8 filesystem encodings (GH-157461) - #157464

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-3e1b5d8-3.13
Sep 13, 2026
Merged

[3.13] gh-156713: Fix test_nturl2path for non-UTF-8 filesystem encodings (GH-157461)#157464
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-3e1b5d8-3.13

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Use os_helper.FS_NONASCII and os_helper.TESTFN_UNDECODABLE instead of hardcoded UTF-8 results.

Manual backport: in 3.13 the tests live in test_urllib.Pathname_Tests; only the two surrogate tests need the change, the \xe9 assertions there are Windows-only.

(cherry picked from commit fd0970c)

…encodings (pythonGH-157461)

Use os_helper.FS_NONASCII and os_helper.TESTFN_UNDECODABLE instead of
hardcoded UTF-8 results.
(cherry picked from commit fd0970c)

Co-authored-by: Serhiy Storchaka <[email protected]>
@bedevere-app bedevere-app Bot added tests Tests in the Lib/test dir awaiting core review labels Sep 13, 2026
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) September 13, 2026 21:02
@serhiy-storchaka
serhiy-storchaka merged commit 1dfd6d5 into python:3.13 Sep 13, 2026
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant