diff --git a/tests/unit/modules/win_system_test.py b/tests/unit/modules/win_system_test.py index cfe3675795..9e04cbc7a3 100644 --- a/tests/unit/modules/win_system_test.py +++ b/tests/unit/modules/win_system_test.py @@ -34,7 +34,7 @@ except ImportError: win_system.__salt__ = {} -@skipIf(NO_MOCK, NO_MOCK_REASON) +@skipIf(NO_MOCK or not HAS_WIN32NET_MODS, NO_MOCK_REASON) class WinSystemTestCase(TestCase): ''' Test cases for salt.modules.win_system