We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76890ef commit ce53f0dCopy full SHA for ce53f0d
tests/test_config.py
@@ -703,9 +703,10 @@ def test_config_precedence():
703
assert cfg(f=LOCAL)['pytest']['precedence'] == 'local'
704
705
706
+@pytest.mark.skipif(WINDOWS, reason="Non-readable files do not exist on Windows")
707
@pytest.mark.skipif(
- WINDOWS or (os.geteuid() == 0),
708
- reason="Non-readable files do not exist on Windows, and root user can always read files",
+ hasattr(os, "geteuid") and os.geteuid() == 0,
709
+ reason="root user can always read files",
710
)
711
def test_config_non_readable_file(config_tmpdir):
712
# test to read a config file without read permission
0 commit comments