Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_site failure with non-ASCII directory #52677

Closed
vstinner opened this issue Apr 17, 2010 · 3 comments
Closed

test_site failure with non-ASCII directory #52677

vstinner opened this issue Apr 17, 2010 · 3 comments
Assignees

Comments

@vstinner
Copy link
Member

BPO 8430
Nosy @warsaw, @vstinner
Files
  • test_site.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/warsaw'
    closed_at = <Date 2010-04-18.08:01:18.262>
    created_at = <Date 2010-04-17.13:39:51.965>
    labels = []
    title = 'test_site failure with non-ASCII directory'
    updated_at = <Date 2010-04-18.08:27:00.177>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2010-04-18.08:27:00.177>
    actor = 'vstinner'
    assignee = 'barry'
    closed = True
    closed_date = <Date 2010-04-18.08:01:18.262>
    closer = 'vstinner'
    components = []
    creation = <Date 2010-04-17.13:39:51.965>
    creator = 'vstinner'
    dependencies = []
    files = ['16959']
    hgrepos = []
    issue_num = 8430
    keywords = ['patch', 'buildbot']
    message_count = 3.0
    messages = ['103400', '103467', '103472']
    nosy_count = 2.0
    nosy_names = ['barry', 'vstinner']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue8430'
    versions = ['Python 3.2']

    @vstinner
    Copy link
    Member Author

    r80137 (PEP-3147) introduced a test in test_site. The test fails on non-ASCII directory because stdout uses ASCII whereas the directories contains non-ASCII characters.

    http://www.python.org/dev/buildbot/builders/AMD64 Ubuntu wide 3.x/builds/848

    Attached patch is a workaround to this issue. The path is encoded to ASCII using backslashreplace error handler. But the patch is not perfect, it should use the reverse operation to get the path as an unicode string. But I don't know how to implement the reverse operation of .encode("ascii", "backslashreplace").

    @vstinner
    Copy link
    Member Author

    Fixed by r80161 (py3k).

    @vstinner
    Copy link
    Member Author

    Fixed by r80161 (py3k).

    It works, the buildbot is now green.

    http://www.python.org/dev/buildbot/all/builders/AMD64 Ubuntu wide 3.x

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants