diff --git a/monkey/tests/unit_tests/infection_monkey/utils/windows/test_windows_users.py b/monkey/tests/unit_tests/infection_monkey/utils/windows/test_windows_users.py index a5c40e4c5..cb5e0746b 100644 --- a/monkey/tests/unit_tests/infection_monkey/utils/windows/test_windows_users.py +++ b/monkey/tests/unit_tests/infection_monkey/utils/windows/test_windows_users.py @@ -1,3 +1,4 @@ +import os import subprocess import pytest @@ -27,6 +28,7 @@ class StubLogonUser: return None +@pytest.mark.skipif(os.name == "posix", reason="This test only runs on Windows.") def test_new_user_delete_windows(subprocess_check_output_spy, monkeypatch): monkeypatch.setattr( "infection_monkey.utils.windows.users.win32security.LogonUser",