diff --git a/tests/test_type_casting.py b/tests/test_type_casting.py index 86495d8..b464323 100644 --- a/tests/test_type_casting.py +++ b/tests/test_type_casting.py @@ -2,6 +2,7 @@ tests/test_edge_cases.py - Edge cases and error handling tests """ +import sys import pytest import os import json @@ -132,6 +133,10 @@ def test_permission_denied_file(self): env_file = Path(self.temp_dir) / '.env' env_file.write_text('KEY=value\n') + + # Skip on Windows as file permissions work differently + if sys.platform == 'win32': + pytest.skip("File permission test not applicable on Windows") # Remove read permissions os.chmod(env_file, stat.S_IWRITE)