Merge pull request #54063 from twangboy/fix_test_pycrypto_2019.2.1

Make the skip apply to any system missing crypt
This commit is contained in:
Daniel Wozniak 2019-07-30 12:22:06 -07:00 committed by GitHub
commit dbbbcc98b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,9 @@ class PycryptoTestCase(TestCase):
TestCase for salt.utils.pycrypto module
'''
@skipIf(salt.utils.platform.is_windows(), 'No crypto module for Windows')
# The crypt module is only available on Unix systems
# https://docs.python.org/dev/library/crypt.html
@skipIf(not salt.utils.pycrypto.HAS_CRYPT, 'crypt module not available')
def test_gen_hash(self):
'''
Test gen_hash