Skip to content

Commit

Permalink
[2.2.x] Refs #31040 -- Fixed crypt.crypt() call in test_hashers.py.
Browse files Browse the repository at this point in the history
An empty string is invalid salt in Python 3 and raises exception since
Python 3.9, see https://bugs.python.org/issue38402.
Backport of 1960d55 from master
  • Loading branch information
felixxm committed Oct 7, 2020
1 parent 657fea5 commit 87b9a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/auth_tests/test_hashers.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
crypt = None
else:
# On some platforms (e.g. OpenBSD), crypt.crypt() always return None.
if crypt.crypt('', '') is None:
if crypt.crypt('') is None:
crypt = None

try:
Expand Down

0 comments on commit 87b9a8b

Please sign in to comment.