mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #26395 -- Skipped the CryptPasswordHasher tests on platforms with a dummy crypt module.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user