summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-01-03 07:47:04 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-10-07 09:16:58 +0200
commit87b9a8b4de29d96be6b6a74992357b635d198b58 (patch)
tree8b28250ddb8584ba2de00b191425648b96645351
parent657fea55cbec215031336112a3efa356b6e9d952 (diff)
[2.2.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
-rw-r--r--tests/auth_tests/test_hashers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auth_tests/test_hashers.py b/tests/auth_tests/test_hashers.py
index 7feff16da9..ee6441b237 100644
--- a/tests/auth_tests/test_hashers.py
+++ b/tests/auth_tests/test_hashers.py
@@ -16,7 +16,7 @@ except ImportError:
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: