Skip to content

Commit 4840748

Browse files
committed
Do not validate executable for others
Signed-off-by: Uilian Ries <uilianries@gmail.com>
1 parent 0299dda commit 4840748

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/unittests/tools/files/test_chmod.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
@pytest.mark.skipif(platform.system() == "Windows", reason="validate full permissions only in Unix")
1313
@pytest.mark.parametrize("read,write,execute,expected", [
14-
(True, True, True, 0o755),
14+
(True, True, True, 0o754),
1515
(False, True, False, 0o200),
16-
(False, False, True, 0o111),
17-
(True, False, True, 0o555),
16+
(False, False, True, 0o110),
17+
(True, False, True, 0o554),
1818
(True, True, False, 0o644),
1919
(True, False, False, 0o444),
2020
(False, False, False, 0o000),])
@@ -34,10 +34,10 @@ def test_chmod_single_file(read, write, execute, expected):
3434

3535
@pytest.mark.skipif(platform.system() == "Windows", reason="validate full permissions only in Unix")
3636
@pytest.mark.parametrize("read,write,execute,expected", [
37-
(True, True, True, 0o755),
37+
(True, True, True, 0o754),
3838
(False, True, False, 0o200),
39-
(False, False, True, 0o111),
40-
(True, False, True, 0o555),
39+
(False, False, True, 0o110),
40+
(True, False, True, 0o554),
4141
(True, True, False, 0o644),
4242
(True, False, False, 0o444),
4343
(False, False, False, 0o000),])

0 commit comments

Comments
 (0)