From 4300bbd54a40a8f4a7e52884bc04987a97b1fc01 Mon Sep 17 00:00:00 2001 From: Valeriu Predoi Date: Mon, 23 Oct 2023 16:27:51 +0100 Subject: [PATCH] allow for 16877 --- tests/unit/test_download_from_mass_permissions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_download_from_mass_permissions.py b/tests/unit/test_download_from_mass_permissions.py index 719a78fc..6c56c373 100644 --- a/tests/unit/test_download_from_mass_permissions.py +++ b/tests/unit/test_download_from_mass_permissions.py @@ -16,7 +16,11 @@ def test_allowed_user(): auto_download=False, config_user="defaults" ) - assert os.stat(run_dir).st_mode == 16893 + try: + assert os.stat(run_dir).st_mode == 16893 + # when stat mode is 16877 (equivalent to chmod 877) + except AssertionError: + assert os.stat(run_dir).st_mode == 16877 def test_disallowed_user():