svn commit: r1921977 - /subversion/trunk/tools/dist/backport_tests.py

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <[email protected]>
Author: dsahlberg
Date: Wed Nov 20 17:45:58 2024
New Revision: 1921977

URL: http://svn.apache.org/viewvc?rev=1921977&view=rev
Log:
Make backport_tests work with Python3

* tools/dist/backport_tests.py
  (verify_backport): Read expected dump in binary format.

Modified:
    subversion/trunk/tools/dist/backport_tests.py

Modified: subversion/trunk/tools/dist/backport_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dist/backport_tests.py?rev=1921977&r1=1921976&r2=1921977&view=diff
==============================================================================
--- subversion/trunk/tools/dist/backport_tests.py (original)
+++ subversion/trunk/tools/dist/backport_tests.py Wed Nov 20 17:45:58 2024
@@ -231,7 +231,7 @@ def verify_backport(sbox, expected_dump_
       "delrevprop", "-r", revnum, sbox.repo_dir, "svn:date")
 
   # Create a dump file from the mirror repository.
-  dest_dump = open(expected_dump_file).readlines()
+  dest_dump = open(expected_dump_file, 'rb').readlines()
   svntest.actions.run_and_verify_svnadmin(None, [],
                                           'setuuid', '--', sbox.repo_dir, uuid)
   src_dump = svntest.actions.run_and_verify_dump(sbox.repo_dir)
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.