Skip to content

Commit

Permalink
mock 2mask
Browse files Browse the repository at this point in the history
  • Loading branch information
dholth committed Sep 23, 2024
1 parent 01195c8 commit ac38f94
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ def test_umask(tmp_path, mocker):
mode & stat_check,
)

# specifically forbid that stat bit
MOCK_UMASK |= stat.S_IWGRP
mocker.patch("conda_package_streaming.package_streaming.UMASK", new=MOCK_UMASK)

tar3.seek(0)
extract.extract_stream(stream(tar3), tmp_path)
mode = (tmp_path / "naughty_umask").stat().st_mode
Expand Down

0 comments on commit ac38f94

Please sign in to comment.