diff options
| author | Tim Graham <timograham@gmail.com> | 2016-03-22 09:47:12 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-03-22 11:22:21 -0400 |
| commit | 1243fdf5cb909a00b653dff5efb2e34d27c1cf7e (patch) | |
| tree | 09477b6b1cd86a7b5f240d297e50958bca4ee3ec /tests | |
| parent | 5ca08f7cab4d65f9bd49bd8a1817dd4b6591cab1 (diff) | |
Fixed #26395 -- Skipped the CryptPasswordHasher tests on platforms with a dummy crypt module.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/auth_tests/test_hashers.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auth_tests/test_hashers.py b/tests/auth_tests/test_hashers.py index a43c170ec1..845deee646 100644 --- a/tests/auth_tests/test_hashers.py +++ b/tests/auth_tests/test_hashers.py @@ -19,6 +19,10 @@ try: import crypt except ImportError: crypt = None +else: + # On some platforms (e.g. OpenBSD), crypt.crypt() always return None. + if crypt.crypt('', '') is None: + crypt = None try: import bcrypt |
