Skip to content

Commit

Permalink
account for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mattp- committed May 28, 2024
1 parent 498f948 commit 3497c67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/backend/builders/test_sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -1560,4 +1560,6 @@ def test_file_permissions_normalized(self, hatch, temp_dir, config_file):
assert expected_artifact == str(build_path / f'{builder.artifact_project_id}.tar.gz')

file_stat = os.stat(expected_artifact)
assert file_stat.st_mode == 0o100644
# we assert that at minimum 644 is set, based on the platform (e.g.)
# windows it may be higher
assert file_stat.st_mode & 0o644
4 changes: 3 additions & 1 deletion tests/backend/builders/test_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3747,4 +3747,6 @@ def test_file_permissions_normalized(self, hatch, temp_dir, config_file):
build_path / f'{builder.artifact_project_id}-{get_python_versions_tag()}-none-any.whl'
)
file_stat = os.stat(expected_artifact)
assert file_stat.st_mode == 0o100644
# we assert that at minimum 644 is set, based on the platform (e.g.)
# windows it may be higher
assert file_stat.st_mode & 0o644

0 comments on commit 3497c67

Please sign in to comment.