mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
commit
dbbbcc98b9
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue