Skip to content

Commit

Permalink
note test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dholth committed Jul 31, 2024
1 parent 50f1280 commit 374883c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,10 @@ def test_umask(tmp_path, mocker):
tar3 = empty_tarfile(name="naughty_umask", mode=0o777)
extract.extract_stream(stream_stdlib(tar3), tmp_path)
mode = (tmp_path / "naughty_umask").stat().st_mode
assert mode & stat.S_IWGRP, "%o" % mode
# is the new .extractall(filter=) erasing group-writable?
assert mode & stat.S_IWGRP, "%o != %o" % (mode, mode & stat.S_IWGRP)

tar3.seek(0)
extract.extract_stream(stream(tar3), tmp_path)
mode = (tmp_path / "naughty_umask").stat().st_mode
assert not mode & stat.S_IWGRP, "%o" % mode
assert not mode & stat.S_IWGRP, "%o != %o" % (mode, mode & stat.S_IWGRP)

0 comments on commit 374883c

Please sign in to comment.