Mercurial > hg
diff tests/test-bundle2-format.t @ 45681:a736ab681b78
errors: stop passing non-strings to Abort's constructor
The next patch will change `Abort`'s constructor and `__bytes__`
functions and they will start assuming that the first argument is the
messages as `bytes`.
Differential Revision: https://phab.mercurial-scm.org/D9178
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 08 Oct 2020 15:35:44 -0700 |
parents | 4c1b4805db57 |
children | ed84a4d48910 |
line wrap: on
line diff
--- a/tests/test-bundle2-format.t Tue Oct 06 21:06:18 2020 -0700 +++ b/tests/test-bundle2-format.t Thu Oct 08 15:35:44 2020 -0700 @@ -22,6 +22,7 @@ > from mercurial import changegroup > from mercurial import error > from mercurial import obsolete + > from mercurial import pycompat > from mercurial import registrar > from mercurial.utils import procutil > @@ -169,7 +170,7 @@ > for chunk in bundler.getchunks(): > file.write(chunk) > except RuntimeError as exc: - > raise error.Abort(exc) + > raise error.Abort(pycompat.bytestr(exc)) > finally: > file.flush() >