You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by fu...@apache.org on 2021/01/11 06:48:47 UTC

svn commit: r1885351 - /subversion/trunk/subversion/bindings/swig/python/tests/client.py

Author: futatuki
Date: Mon Jan 11 06:48:47 2021
New Revision: 1885351

URL: http://svn.apache.org/viewvc?rev=1885351&view=rev
Log:
swig-py: Check capability of bytes and unicode mixture in sequence on Python 2

* subversion/bindings/swig/python/tests/client.py
  (SubversionClientTestCase.test_log5_revprops):
   Use 'u' prefix to check it in case of Python 2 as well as in Python 3.

Modified:
    subversion/trunk/subversion/bindings/swig/python/tests/client.py

Modified: subversion/trunk/subversion/bindings/swig/python/tests/client.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/python/tests/client.py?rev=1885351&r1=1885350&r2=1885351&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/python/tests/client.py (original)
+++ subversion/trunk/subversion/bindings/swig/python/tests/client.py Mon Jan 11 06:48:47 2021
@@ -300,9 +300,9 @@ class SubversionClientTestCase(unittest.
 
     self.received_log_entries = []
 
-    # (Python 3: pass tuple of bytes and str mixture as revprops argument)
+    # (Pass tuple of bytes and str(unicode) mixture as revprops argument)
     client.log5((directory,), start, (rev_range,), 1, True, False, False,
-                ('svn:author', b'svn:log'),
+                (u'svn:author', b'svn:log'),
                 log_entry_receiver_whole, self.client_ctx)
     self.assertEqual(len(self.received_log_entries), 1)
     revprops = self.received_log_entries[0].revprops