1
0
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:
Tim Graham
2016-03-22 09:47:12 -04:00
parent 5ca08f7cab
commit 1243fdf5cb
2 changed files with 5 additions and 0 deletions

View File

@@ -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