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 77b3bf8 commit d51bda2Copy full SHA for d51bda2
tests/config/tests.py
@@ -278,7 +278,10 @@ def test_file_is_readable_validator_not_a_file(tmpdir):
278
assert "is not a file" in e.value.args[0]
279
280
281
-@pytest.mark.skipif(platform.system() == "Windows", reason="os.access() doesn't seem to work as we expect on Windows")
+@pytest.mark.skipif(
282
+ platform.system() == "Windows" or os.getuid() == 0,
283
+ reason="os.access() doesn't seem to work as we expect on Windows and test will fail as root user",
284
+)
285
def test_file_is_readable_validator_not_readable(tmpdir):
286
p = tmpdir.join("nonreadable")
287
p.write("")
0 commit comments