diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-01-03 07:47:04 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-01-03 07:47:56 +0100 |
| commit | 09b4224e11af45af55d4948f5240067c788669d6 (patch) | |
| tree | 0d2a4b0ff09ed9638a9b4b8c4f34570d0896ccc2 | |
| parent | eb94e7ad6bab5da085890ec4238b7d58f48c3cf7 (diff) | |
[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
| -rw-r--r-- | tests/auth_tests/test_hashers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auth_tests/test_hashers.py b/tests/auth_tests/test_hashers.py index ad62101d8c..7d2864d202 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: |
