Mercurial > hg
diff tests/test-dirstate.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 | b7808443ed6a |
children | 93eb6c8035a9 |
line wrap: on
line diff
--- a/tests/test-dirstate.t Tue Oct 06 21:06:18 2020 -0700 +++ b/tests/test-dirstate.t Thu Oct 08 15:35:44 2020 -0700 @@ -74,7 +74,7 @@ > ) > > def wraprecordupdates(*args): - > raise error.Abort("simulated error while recording dirstateupdates") + > raise error.Abort(b"simulated error while recording dirstateupdates") > > def reposetup(ui, repo): > extensions.wrapfunction(mergestatemod, 'recordupdates',