Skip to content

test_strptime locale failures on Windows for rare languages #139901

@Yzi-Li

Description

@Yzi-Li

Bug report

Bug description:

On Windows, test_strptime fails for rare locales (e.g. aa_ET, om_ET, so_SO) because locale data is missing for these languages. The same tests pass on Linux, where the relevant locale data is available.

Example error:

AssertionError: Tuples differ: (8, 9, 28) != (20, 9, 28)
: testing of '%X' format failed; '8:09:28...' -> (8, 9, 28) != (20, 9, 28)

Expected behavior

Skip tests for locales that are not available or not supported on the current platform.
If this is acceptable, I am willing to submit a PR.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowstestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions