svn commit: r1931266 - subversion/trunk/subversion/tests/cmdline/svntest

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <176823271946.1289299.17816925283115158422@svn02-us-east.apache.org>
Author: brane
Date: Mon Jan 12 15:45:18 2026
New Revision: 1931266

Log:
In Python 3, hashlib input data must be byte strings, not Unicode.

* subversion/tests/cmdline/svntest/main.py
  (trust_ssl_cert): Convert the location to bytes. This makes davautocheck
   tests with USE_SSL=1 work again.

Modified:
   subversion/trunk/subversion/tests/cmdline/svntest/main.py

Modified: subversion/trunk/subversion/tests/cmdline/svntest/main.py
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/main.py	Mon Jan 12 15:35:16 2026	(r1931265)
+++ subversion/trunk/subversion/tests/cmdline/svntest/main.py	Mon Jan 12 15:45:18 2026	(r1931266)
@@ -784,7 +784,7 @@ def trust_ssl_cert(cfgdir, ssl_cert, ssl
   ssl_dir = os.path.join(cfgdir, 'auth', 'svn.ssl.server')
   if not os.path.isdir(ssl_dir):
     os.makedirs(ssl_dir)
-  md5_name = hashlib.md5(netloc_url).hexdigest()
+  md5_name = hashlib.md5(netloc_url.encode()).hexdigest()
   md5_file = os.path.join(ssl_dir, md5_name)
   md5_file_contents = """K 10
 ascii_cert
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.