Skip to content

test_site: test_underpth_basic() fails if the current directory is non-ASCII #109237

Closed
@vstinner

Description

@vstinner

Failure on GHA Windows x64 CI with PR #109229 which runs test_site in a non-ASCII working directory:

FAIL: test_underpth_basic (test.test_site._pthFileTests.test_underpth_basic)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\a\cpython\cpython\Lib\test\test_site.py", line 621, in test_underpth_basic
    self.assertEqual(
AssertionError: Lists differ: ['D:\[40 chars]_1460\udce6', 'D:\\a\\cpython\\cpython\\PCbuil[396 chars]18f'] != ['D:\[40 chars]_1460�', 'D:\\a\\cpython\\cpython\\PCbuild\\am[391 chars]18f']

First differing element 0:
'D:\\a\\cpython\\cpython\\build\\test_python_1460\udce6'
'D:\\a\\cpython\\cpython\\build\\test_python_1460�'

Diff is 690 characters long. Set self.maxDiff to None to see it. : sys.path is incorrect

build: https://github.com/python/cpython/actions/runs/6138224249/job/16654899364?pr=109229

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions