diff options
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 |
