Skip test on Windows

This commit is contained in:
twangboy 2019-05-22 16:54:23 -06:00
parent 446e70c506
commit 758d020c08
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB
2 changed files with 4 additions and 1 deletions

View file

@ -25,6 +25,7 @@ except ImportError:
try:
# Windows does not have the crypt module
# consider using passlib.hash instead
import crypt
HAS_CRYPT = True
except ImportError:

View file

@ -7,9 +7,10 @@ import re
# Import Salt Libs
import salt.utils.pycrypto
import salt.utils.platform
# Import Salt Testing Libs
from tests.support.unit import TestCase
from tests.support.unit import TestCase, skipIf
log = logging.getLogger(__name__)
@ -19,6 +20,7 @@ class PycryptoTestCase(TestCase):
TestCase for salt.utils.pycrypto module
'''
@skipIf(salt.utils.platform.is_windows(), 'No crypto module for Windows')
def test_gen_hash(self):
'''
Test gen_hash