mirror of
https://github.com/django/django.git
synced 2025-07-17 16:19:12 +00:00
[3.0.x] Refs #31040 -- Fixed crypt.crypt() call in test_hashers.py.
An empty string is invalid salt in Python 3 and raises exception since Python 3.9, see https://bugs.python.org/issue38402. Backport of 1960d55f8baa412b43546d15a8342554808fff57 from master
This commit is contained in:
parent
eb94e7ad6b
commit
09b4224e11
@ -16,7 +16,7 @@ except ImportError:
|
|||||||
crypt = None
|
crypt = None
|
||||||
else:
|
else:
|
||||||
# On some platforms (e.g. OpenBSD), crypt.crypt() always return None.
|
# On some platforms (e.g. OpenBSD), crypt.crypt() always return None.
|
||||||
if crypt.crypt('', '') is None:
|
if crypt.crypt('') is None:
|
||||||
crypt = None
|
crypt = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user