Nathan Hartman wrote on Fri, Oct 11, 2019 at 16:50:39 -0400: > On Fri, Oct 11, 2019 at 4:32 PM Yasuhito FUTATSUKI <futat...@poem.co.jp> > wrote: > > This is caused by mixing bytes object drived from file contents and str > > object to construct log message. > > Does something like this answer help: > > https://stackoverflow.com/questions/31058055/how-do-i-convert-a-python-3-byte-string-variable-into-a-regular-string/31060836 > > Something like: > str(bytes_string, 'utf-8')
Nathan, I appreciate the intent, but Yasuhito and I are both familiar with the semantics of str and bytes objects in Python 3. We're not asking what the difference between bytes and str is, or how to work with them; we are simply trying to resolve two particular test failures, in svnadmin_ and tree_conflict_tests.py. Specifically, we're trying to determine whether file contents should be handled as str or as bytes, both in the test function and in the test framework. Cheers, Daniel