From 1243fdf5cb909a00b653dff5efb2e34d27c1cf7e Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 22 Mar 2016 09:47:12 -0400 Subject: Fixed #26395 -- Skipped the CryptPasswordHasher tests on platforms with a dummy crypt module. --- tests/auth_tests/test_hashers.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/auth_tests') 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 -- cgit v1.3