From c96049e826201bde07ec0c968a03287c35a2ad24 Mon Sep 17 00:00:00 2001 From: Carrington Muleya <79579279+Carrington-dev@users.noreply.github.com> Date: Wed, 21 Jan 2026 23:33:21 +0200 Subject: [PATCH] Fix: File permission test not applicable on Window --- tests/test_type_casting.py | 5 +++++ 1 file changed, 5 insertions(+) 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)