Mercurial > hg-stable
changeset 36599:4df06d2f60e1
tests: port test-bookmarks.t extension to Python 3
# skip-blame it's just b prefixes
Differential Revision: https://phab.mercurial-scm.org/D2546
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 02 Mar 2018 00:19:51 -0500 |
parents | bb5f5c1c3c1b |
children | 5a3f8da663e5 |
files | tests/test-bookmarks.t |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-bookmarks.t Fri Mar 02 00:19:30 2018 -0500 +++ b/tests/test-bookmarks.t Fri Mar 02 00:19:51 2018 -0500 @@ -980,14 +980,14 @@ > tr = orig(self, desc, report) > def sleep(*args, **kwargs): > retry = 20 - > while retry > 0 and not os.path.exists("$TESTTMP/unpause"): + > while retry > 0 and not os.path.exists(b"$TESTTMP/unpause"): > retry -= 1 > time.sleep(0.5) - > if os.path.exists("$TESTTMP/unpause"): - > os.remove("$TESTTMP/unpause") + > if os.path.exists(b"$TESTTMP/unpause"): + > os.remove(b"$TESTTMP/unpause") > # It is important that this finalizer start with 'a', so it runs before > # the changelog finalizer appends to the changelog. - > tr.addfinalize('a-sleep', sleep) + > tr.addfinalize(b'a-sleep', sleep) > return tr > > def extsetup(ui):