Skip to content

Commit 4300bbd

Browse files
committed
allow for 16877
1 parent 098ad28 commit 4300bbd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/unit/test_download_from_mass_permissions.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ def test_allowed_user():
1616
auto_download=False,
1717
config_user="defaults"
1818
)
19-
assert os.stat(run_dir).st_mode == 16893
19+
try:
20+
assert os.stat(run_dir).st_mode == 16893
21+
# when stat mode is 16877 (equivalent to chmod 877)
22+
except AssertionError:
23+
assert os.stat(run_dir).st_mode == 16877
2024

2125

2226
def test_disallowed_user():

0 commit comments

Comments
 (0)