Skip to content
New issue

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

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

Already on GitHub? # to your account

python tests suite fails on windows #789

Open
reyammer opened this issue Nov 4, 2024 · 1 comment
Open

python tests suite fails on windows #789

reyammer opened this issue Nov 4, 2024 · 1 comment
Labels
help wanted Extra attention is needed python Pull requests that update Python package testing This issue is about improving testing

Comments

@reyammer
Copy link
Collaborator

reyammer commented Nov 4, 2024

The tests suite at https://github.com/google/magika/blob/main/.github/workflows/python-test-suite.yml somehow fails when running it on windows.

Some of the failures are about mypy (rightfully) complaining about the signal module, but even when commenting that out, other issues pop out when running the tests. These include some misdetection-related checks, which is very weird as nothing should change depending on the operating system.

@reyammer reyammer added python Pull requests that update Python package testing This issue is about improving testing help wanted Extra attention is needed labels Nov 4, 2024
@ps2181
Copy link
Contributor

ps2181 commented Mar 24, 2025

@reyammer Could the issue be related to how the OS handles line ending differences (\r\n vs. \n), case sensitivity in paths, or encoding mismatches if files aren’t explicitly set to UTF-8? For any tests involving path comparisons, using os.path.normcase() might help ensure consistency across platforms.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
help wanted Extra attention is needed python Pull requests that update Python package testing This issue is about improving testing
Projects
None yet
Development

No branches or pull requests

2 participants