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

Fix tests for Windows #320

Closed
wants to merge 2 commits into from

Conversation

RunDevelopment
Copy link

@RunDevelopment RunDevelopment commented Feb 3, 2024

Fixes #313.

Changes:

  • Removed all uses of shlex.split. Since windows paths use \, string interpolation + shlex.split will result in those backslashes being interpreted as escape sequences. So I used argument arrays everywhere instead.
  • Removed the assumption that /tmp is a directory that exists.
  • Removed usage of tempfile.NamedTemporaryFile(). The named file is opened by the test process, which means that it cannot be written to by a sub process on windows.
  • Added GH CI job for tests with Windows test runner. Since make doesn't exist on Windows, I copied the test command.

@RunDevelopment RunDevelopment marked this pull request as draft February 3, 2024 19:47
@RunDevelopment
Copy link
Author

Right now, all tests pass on Windows except for test_download_folder_from_gdrive. I have no idea what this command does, so I can't replace it with equivalent python code.

@wkentaro
Copy link
Owner

@RunDevelopment Now I added CI for Windows that uses make command with : #324

I'll work on updating the tests next.

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

Successfully merging this pull request may close these issues.

Tests don't work on Windows
2 participants