mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Skip test on Windows
This commit is contained in:
parent
446e70c506
commit
758d020c08
2 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue