git-repo/tests
Mike Frysinger 70c54dc255 upload/editor: fix bytes/string confusion
The upload module tries to turn the strings into bytes before passing
to EditString, but it combines bytes & strings causing an error.  The
return value might be bytes or string, but the caller only expects a
string.  Lets simplify this by sticking to strings everywhere and have
EditString take care of converting to/from bytes when reading/writing
the underlying files.  This also avoids possible locale confusion when
reading the file by forcing UTF-8 everywhere.

Bug: https://crbug.com/gerrit/11929
Change-Id: I07b146170c5e8b5b0500a2c79e4213cd12140a96
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/245621
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Tested-by: Mike Frysinger <vapier@google.com>
2019-11-16 23:55:30 +00:00
..
fixtures run_tests: add a helper for invoking unittests 2019-07-11 04:34:08 +00:00
test_editor.py upload/editor: fix bytes/string confusion 2019-11-16 23:55:30 +00:00
test_git_command.py git_command: set GIT_HTTP_USER_AGENT on all requests 2019-10-01 05:47:17 +00:00
test_git_config.py tests: add docstrings & print_function (for Python 3) 2019-08-01 03:03:48 +00:00
test_project.py prune: handle branches that track missing branches 2019-11-16 19:55:02 +00:00
test_wrapper.py tests: add docstrings & print_function (for Python 3) 2019-08-01 03:03:48 +00:00