Spaces:
Running
Running
Amerr, Ziad (ext) (DI SW ICS MNA RD QA QST 2) commited on
Commit ·
2a28217
1
Parent(s): e483e90
Fixed formatting again
Browse files
tests/resources/test_file_resources.py
CHANGED
|
@@ -99,7 +99,7 @@ class TestFileResource:
|
|
| 99 |
await resource.read()
|
| 100 |
|
| 101 |
@pytest.mark.skipif(
|
| 102 |
-
os.name == "nt" or (hasattr(os,
|
| 103 |
reason="File permissions behave differently on Windows or when running as root",
|
| 104 |
)
|
| 105 |
async def test_permission_error(self, temp_file: Path):
|
|
|
|
| 99 |
await resource.read()
|
| 100 |
|
| 101 |
@pytest.mark.skipif(
|
| 102 |
+
os.name == "nt" or (hasattr(os, "getuid") and os.getuid() == 0),
|
| 103 |
reason="File permissions behave differently on Windows or when running as root",
|
| 104 |
)
|
| 105 |
async def test_permission_error(self, temp_file: Path):
|